@Beta
public interface Constraint
| Modifier and Type | Method and Description | 
|---|---|
double | 
cost(Link link,
    ResourceContext context)
Evaluates the specified link and provides the cost for its traversal. 
 | 
boolean | 
validate(Path path,
        ResourceContext context)
Validates that the specified path satisfies the constraint. 
 | 
double cost(Link link, ResourceContext context)
link - link to be evaluatedcontext - resource context for validating availability of resourcesboolean validate(Path path, ResourceContext context)
path - path to be validatedcontext - resource context for validating availability of resources