Class PathViabilityConstraint
- java.lang.Object
 - 
- org.onosproject.net.intent.constraint.PathViabilityConstraint
 
 
- 
- All Implemented Interfaces:
 Constraint
- Direct Known Subclasses:
 WaypointConstraint
public abstract class PathViabilityConstraint extends Object implements Constraint
Abstract Constraint for constraints intended to influence only path viability and not influence individual link cost during path computation. 
- 
- 
Constructor Summary
Constructors Constructor Description PathViabilityConstraint() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublecost(Link link, ResourceContext context)Evaluates the specified link and provides the cost for its traversal.- 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
- 
Methods inherited from interface org.onosproject.net.intent.Constraint
validate 
 - 
 
 - 
 
- 
- 
Method Detail
- 
cost
public final double cost(Link link, ResourceContext context)
Description copied from interface:ConstraintEvaluates the specified link and provides the cost for its traversal.- Specified by:
 costin interfaceConstraint- Parameters:
 link- link to be evaluatedcontext- resource context for validating availability of resources- Returns:
 - cost of link traversal
 
 
 - 
 
 -