public abstract class MarkerConstraint extends Object implements Constraint
Constructor and Description |
---|
MarkerConstraint() |
Modifier and Type | Method and Description |
---|---|
double |
cost(Link link,
ResourceContext context)
Evaluates the specified link and provides the cost for its traversal.
|
boolean |
equals(Object obj) |
int |
hashCode() |
String |
toString() |
boolean |
validate(Path path,
ResourceContext context)
Validates that the specified path satisfies the constraint.
|
public final double cost(Link link, ResourceContext context)
Constraint
cost
in interface Constraint
link
- link to be evaluatedcontext
- resource context for validating availability of resourcespublic final boolean validate(Path path, ResourceContext context)
Constraint
validate
in interface Constraint
path
- path to be validatedcontext
- resource context for validating availability of resources