@Beta public final class WaypointConstraint extends PathViabilityConstraint
| Constructor and Description |
|---|
WaypointConstraint(DeviceId... waypoints)
Creates a new waypoint constraint.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
java.lang.String |
toString() |
boolean |
validate(Path path,
ResourceContext context)
Validates that the specified path satisfies the constraint.
|
java.util.List<DeviceId> |
waypoints() |
costpublic WaypointConstraint(DeviceId... waypoints)
waypoints - waypointspublic java.util.List<DeviceId> waypoints()
public boolean validate(Path path, ResourceContext context)
Constraintpath - path to be validatedcontext - resource context for validating availability of resourcespublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object