Package org.onosproject.net.topology
Class AbstractPathService
- java.lang.Object
- 
- org.onosproject.net.topology.AbstractPathService
 
- 
- All Implemented Interfaces:
- PathService
 
 public abstract class AbstractPathService extends java.lang.Object implements PathService Helper class for path service.Class inheriting this must manually initialize topologyServiceandhostServicefields.
- 
- 
Field SummaryFields Modifier and Type Field Description protected static LinkWeigherDEFAULT_WEIGHERprotected HostServicehostServiceprotected TopologyServicetopologyService
 - 
Constructor SummaryConstructors Constructor Description AbstractPathService()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<DisjointPath>getDisjointPaths(ElementId src, ElementId dst, LinkWeigher weigher)Returns the set of all disjoint shortest path pairs between the specified source and destination elements.java.util.Set<DisjointPath>getDisjointPaths(ElementId src, ElementId dst, LinkWeigher weigher, java.util.Map<Link,java.lang.Object> riskProfile)Returns the set of all disjoint shortest path pairs between the specified source and destination elements and taking into consideration the provided risk profile.java.util.stream.Stream<Path>getKShortestPaths(ElementId src, ElementId dst, LinkWeigher weigher)Returns the k-shortest paths between source and destination devices.java.util.Set<Path>getPaths(ElementId src, ElementId dst, LinkWeigher weigher)Returns the set of all shortest paths between the specified source and destination network elements.- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.onosproject.net.topology.PathServicegetDisjointPaths, getDisjointPaths, getKShortestPaths, getPaths
 
- 
 
- 
- 
- 
Field Detail- 
DEFAULT_WEIGHERprotected static final LinkWeigher DEFAULT_WEIGHER 
 - 
topologyServiceprotected TopologyService topologyService 
 - 
hostServiceprotected HostService hostService 
 
- 
 - 
Method Detail- 
getPathspublic java.util.Set<Path> getPaths(ElementId src, ElementId dst, LinkWeigher weigher) Description copied from interface:PathServiceReturns the set of all shortest paths between the specified source and destination network elements. The path is computed using the supplied edge-weight function.- Specified by:
- getPathsin interface- PathService
- Parameters:
- src- source element
- dst- destination element
- weigher- edge-weight entity
- Returns:
- set of all shortest paths between the two element
 
 - 
getKShortestPathspublic java.util.stream.Stream<Path> getKShortestPaths(ElementId src, ElementId dst, LinkWeigher weigher) Description copied from interface:PathServiceReturns the k-shortest paths between source and destination devices.- Specified by:
- getKShortestPathsin interface- PathService
- Parameters:
- src- source device
- dst- destination device
- weigher- edge-weight entity
- Returns:
- stream of k-shortest paths
 
 - 
getDisjointPathspublic java.util.Set<DisjointPath> getDisjointPaths(ElementId src, ElementId dst, LinkWeigher weigher) Description copied from interface:PathServiceReturns the set of all disjoint shortest path pairs between the specified source and destination elements. The path is computed using the supplied edge-weight function.- Specified by:
- getDisjointPathsin interface- PathService
- Parameters:
- src- source device
- dst- destination device
- weigher- edge-weight entity
- Returns:
- set of all shortest paths between the two devices
 
 - 
getDisjointPathspublic java.util.Set<DisjointPath> getDisjointPaths(ElementId src, ElementId dst, LinkWeigher weigher, java.util.Map<Link,java.lang.Object> riskProfile) Description copied from interface:PathServiceReturns the set of all disjoint shortest path pairs between the specified source and destination elements and taking into consideration the provided risk profile. The path is computed using the supplied edge-weight function.- Specified by:
- getDisjointPathsin interface- PathService
- Parameters:
- src- source device
- dst- destination device
- weigher- edge-weight entity
- riskProfile- map of edges to risk profiles
- Returns:
- set of all shortest paths between the two devices
 
 
- 
 
-