public abstract class BooleanConstraint extends Object implements Constraint
| Constructor and Description |
|---|
BooleanConstraint() |
| Modifier and Type | Method and Description |
|---|---|
double |
cost(Link link,
LinkResourceService resourceService)
Evaluates the specified link and provides the cost for its traversal.
|
abstract boolean |
isValid(Link link,
LinkResourceService resourceService)
Returns true if the specified link satisfies the constraint.
|
boolean |
validate(Path path,
LinkResourceService resourceService)
Validates that the specified path satisfies the constraint.
|
public abstract boolean isValid(Link link, LinkResourceService resourceService)
link - link to be validatedresourceService - resource service for checking available link resourcespublic double cost(Link link, LinkResourceService resourceService)
cost in interface Constraintlink - link to be evaluatedresourceService - resource service for validating availability of
link resourcespublic boolean validate(Path path, LinkResourceService resourceService)
Constraintvalidate in interface Constraintpath - path to be validatedresourceService - resource service for validating availability of
link resourcesCopyright © 2015. All rights reserved.