public abstract class ConnectivityIntentCompiler<T extends org.onosproject.net.intent.ConnectivityIntent> extends Object implements org.onosproject.net.intent.IntentCompiler<T>
connectivity intents.| Modifier and Type | Class and Description |
|---|---|
protected class |
ConnectivityIntentCompiler.ConstraintBasedLinkWeight
Edge-weight capable of evaluating link cost using a set of constraints.
|
| Modifier and Type | Field and Description |
|---|---|
protected org.onosproject.net.intent.IntentExtensionService |
intentManager |
protected org.onosproject.net.topology.PathService |
pathService |
protected org.onosproject.net.resource.ResourceQueryService |
resourceService |
| Constructor and Description |
|---|
ConnectivityIntentCompiler() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkPath(org.onosproject.net.Path path,
List<org.onosproject.net.intent.Constraint> constraints)
Validates the specified path against the given constraints.
|
protected org.onosproject.net.DisjointPath |
getDisjointPath(org.onosproject.net.intent.ConnectivityIntent intent,
org.onosproject.net.ElementId one,
org.onosproject.net.ElementId two)
Computes a disjoint path between two ConnectPoints.
|
protected org.onosproject.net.Path |
getPath(org.onosproject.net.intent.ConnectivityIntent intent,
org.onosproject.net.ElementId one,
org.onosproject.net.ElementId two)
Computes a path between two ConnectPoints.
|
protected org.onosproject.net.topology.LinkWeight |
weight(List<org.onosproject.net.intent.Constraint> constraints)
Returns an edge-weight capable of evaluating links on the basis of the
specified constraints.
|
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.intent.IntentExtensionService intentManager
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.topology.PathService pathService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.resource.ResourceQueryService resourceService
protected org.onosproject.net.topology.LinkWeight weight(List<org.onosproject.net.intent.Constraint> constraints)
constraints - path constraintsprotected boolean checkPath(org.onosproject.net.Path path,
List<org.onosproject.net.intent.Constraint> constraints)
path - path to be checkedconstraints - path constraintsprotected org.onosproject.net.Path getPath(org.onosproject.net.intent.ConnectivityIntent intent,
org.onosproject.net.ElementId one,
org.onosproject.net.ElementId two)
intent - intent on which behalf path is being computedone - start of the pathtwo - end of the pathPathNotFoundException - if a path cannot be foundprotected org.onosproject.net.DisjointPath getDisjointPath(org.onosproject.net.intent.ConnectivityIntent intent,
org.onosproject.net.ElementId one,
org.onosproject.net.ElementId two)
intent - intent on which behalf path is being computedone - start of the pathtwo - end of the pathPathNotFoundException - if two paths cannot be found