public abstract class PathViabilityConstraint extends Object implements Constraint
Constructor and Description |
---|
PathViabilityConstraint() |
Modifier and Type | Method and Description |
---|---|
double |
cost(Link link,
ResourceContext context)
Evaluates the specified link and provides the cost for its traversal.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
validate
public final double cost(Link link, ResourceContext context)
Constraint
cost
in interface Constraint
link
- link to be evaluatedcontext
- resource context for validating availability of resources