@Beta public abstract class BooleanConstraint extends java.lang.Object implements Constraint
Constructor and Description |
---|
BooleanConstraint() |
Modifier and Type | Method and Description |
---|---|
double |
cost(Link link,
ResourceContext context)
Evaluates the specified link and provides the cost for its traversal.
|
abstract boolean |
isValid(Link link,
ResourceContext context)
Returns true if the specified link satisfies the constraint.
|
boolean |
validate(Path path,
ResourceContext context)
Validates that the specified path satisfies the constraint.
|
public abstract boolean isValid(Link link, ResourceContext context)
link
- link to be validatedcontext
- resource context for checking available resourcespublic double cost(Link link, ResourceContext context)
cost
in interface Constraint
link
- link to be evaluatedcontext
- resource context for validating availability of resourcespublic boolean validate(Path path, ResourceContext context)
Constraint
validate
in interface Constraint
path
- path to be validatedcontext
- resource context for validating availability of resources