Class ProtectedConstraint
- java.lang.Object
 - 
- org.onosproject.net.intent.constraint.BooleanConstraint
 - 
- org.onosproject.net.intent.constraint.ProtectedConstraint
 
 
 
- 
- All Implemented Interfaces:
 Constraint
public class ProtectedConstraint extends BooleanConstraint
Constraint to request using onlyprotectedLinks. 
- 
- 
Constructor Summary
Constructors Constructor Description ProtectedConstraint() 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisValid(Link link, ResourceContext context)Returns true if the specified link satisfies the constraint.StringtoString()static ProtectedConstraintuseProtectedLink()ReturnsProtectedConstraintinstance.- 
Methods inherited from class org.onosproject.net.intent.constraint.BooleanConstraint
cost, validate 
 - 
 
 - 
 
- 
- 
Method Detail
- 
useProtectedLink
public static ProtectedConstraint useProtectedLink()
ReturnsProtectedConstraintinstance.- Returns:
 ProtectedConstraintinstance
 
- 
isValid
public boolean isValid(Link link, ResourceContext context)
Description copied from class:BooleanConstraintReturns true if the specified link satisfies the constraint.- Specified by:
 isValidin classBooleanConstraint- Parameters:
 link- link to be validatedcontext- resource context for checking available resources- Returns:
 - true if link is viable
 
 
 - 
 
 -