@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() |
cost
public WaypointConstraint(DeviceId... waypoints)
waypoints
- waypointspublic java.util.List<DeviceId> waypoints()
public boolean validate(Path path, ResourceContext context)
Constraint
path
- path to be validatedcontext
- resource context for validating availability of resourcespublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object