public abstract class AbstractPathService extends Object implements PathService
Class inheriting this must manually initialize topologyService
and hostService fields.
| Modifier and Type | Field and Description |
|---|---|
protected static LinkWeigher |
DEFAULT_WEIGHER |
protected HostService |
hostService |
protected TopologyService |
topologyService |
| Constructor and Description |
|---|
AbstractPathService() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
Set<DisjointPath> |
getDisjointPaths(ElementId src,
ElementId dst,
LinkWeigher weigher,
Map<Link,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.
|
Stream<Path> |
getKShortestPaths(ElementId src,
ElementId dst,
LinkWeigher weigher)
Returns the k-shortest paths between source and
destination devices.
|
Set<Path> |
getPaths(ElementId src,
ElementId dst,
LinkWeigher weigher)
Returns the set of all shortest paths between the specified source and
destination network elements.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDisjointPaths, getDisjointPaths, getKShortestPaths, getPathsprotected static final LinkWeigher DEFAULT_WEIGHER
protected TopologyService topologyService
protected HostService hostService
public Set<Path> getPaths(ElementId src, ElementId dst, LinkWeigher weigher)
PathServicegetPaths in interface PathServicesrc - source elementdst - destination elementweigher - edge-weight entitypublic Stream<Path> getKShortestPaths(ElementId src, ElementId dst, LinkWeigher weigher)
PathServicegetKShortestPaths in interface PathServicesrc - source devicedst - destination deviceweigher - edge-weight entitypublic Set<DisjointPath> getDisjointPaths(ElementId src, ElementId dst, LinkWeigher weigher)
PathServicegetDisjointPaths in interface PathServicesrc - source devicedst - destination deviceweigher - edge-weight entitypublic Set<DisjointPath> getDisjointPaths(ElementId src, ElementId dst, LinkWeigher weigher, Map<Link,Object> riskProfile)
PathServicegetDisjointPaths in interface PathServicesrc - source devicedst - destination deviceweigher - edge-weight entityriskProfile - map of edges to risk profiles