Package org.onosproject.net
Interface Path
-
- All Superinterfaces:
Annotated
,Link
,NetworkResource
,Projectable
,Provided
- All Known Subinterfaces:
DisjointPath
- All Known Implementing Classes:
DefaultDisjointPath
,DefaultPath
public interface Path extends Link
Representation of a contiguous directed path in a network. Path comprises of a sequence of links, where adjacent links must share the same device, meaning that destination of the source of one link must coincide with the destination of the previous link. Path weight (cost) is an aggregation of the weights of the links the path consists of.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.onosproject.net.Link
Link.State, Link.Type
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description double
cost()
Deprecated.in Junco (1.9.0), use weight() insteadjava.util.List<Link>
links()
Returns sequence of links comprising the path.Weight
weight()
Returns the path cost as an weight instance.-
Methods inherited from interface org.onosproject.net.Annotated
annotations
-
Methods inherited from interface org.onosproject.net.driver.Projectable
as, is, project
-
Methods inherited from interface org.onosproject.net.Provided
providerId
-
-
-
-
Method Detail
-
links
java.util.List<Link> links()
Returns sequence of links comprising the path.- Returns:
- list of links
-
cost
@Deprecated double cost()
Deprecated.in Junco (1.9.0), use weight() insteadReturns the path cost as a unit-less value.- Returns:
- unit-less path cost
-
weight
Weight weight()
Returns the path cost as an weight instance.- Returns:
- weight path cost
-
-