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.LinkLink.State, Link.Type
 
- 
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description doublecost()Deprecated.in Junco (1.9.0), use weight() insteadList<Link>links()Returns sequence of links comprising the path.Weightweight()Returns the path cost as an weight instance.- 
Methods inherited from interface org.onosproject.net.Annotatedannotations
 - 
Methods inherited from interface org.onosproject.net.driver.Projectableas, is, project
 - 
Methods inherited from interface org.onosproject.net.ProvidedproviderId
 
- 
 
- 
- 
- 
Method Detail- 
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
 
 - 
weightWeight weight() Returns the path cost as an weight instance.- Returns:
- weight path cost
 
 
- 
 
-