Class ProtectionConstraint
- java.lang.Object
 - 
- org.onosproject.net.intent.constraint.MarkerConstraint
 - 
- org.onosproject.net.intent.constraint.ProtectionConstraint
 
 
 
- 
- All Implemented Interfaces:
 Constraint
@Beta public final class ProtectionConstraint extends MarkerConstraint
Constraint that determines whether to employ path protection. 
- 
- 
Constructor Summary
Constructors Modifier Constructor Description protectedProtectionConstraint() 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ProtectionConstraintprotection()Returns protection constraint.static booleanrequireProtectedPath(Intent intent)Determines whether to utilize path protection for the given intent.StringtoString()- 
Methods inherited from class org.onosproject.net.intent.constraint.MarkerConstraint
cost, equals, hashCode, validate 
 - 
 
 - 
 
- 
- 
Method Detail
- 
requireProtectedPath
public static boolean requireProtectedPath(Intent intent)
Determines whether to utilize path protection for the given intent.- Parameters:
 intent- intent to be inspected- Returns:
 - whether the intent has a ProtectionConstraint
 
 
- 
protection
public static ProtectionConstraint protection()
Returns protection constraint.- Returns:
 - protection constraint
 
 
- 
toString
public String toString()
- Overrides:
 toStringin classMarkerConstraint
 
 - 
 
 -