public class ObstacleConstraint extends BooleanConstraint
| Constructor and Description |
|---|
ObstacleConstraint(DeviceId... obstacles)
Creates a new constraint that the specified device are not passed through.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
hashCode() |
boolean |
isValid(Link link,
LinkResourceService resourceService)
Returns true if the specified link satisfies the constraint.
|
String |
toString() |
cost, validatepublic ObstacleConstraint(DeviceId... obstacles)
obstacles - devices not to be passedpublic boolean isValid(Link link, LinkResourceService resourceService)
BooleanConstraintisValid in class BooleanConstraintlink - link to be validatedresourceService - resource service for checking available link resourcesCopyright © 2015. All rights reserved.