public abstract class AbstractPathService extends java.lang.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 |
---|---|
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.Set<DisjointPath> |
getDisjointPaths(ElementId src,
ElementId dst,
LinkWeight weight)
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,
LinkWeight weight,
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.
|
java.util.Set<Path> |
getPaths(ElementId src,
ElementId dst,
LinkWeight weight)
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, wait
getDisjointPaths, getDisjointPaths, getKShortestPaths, getPaths
protected static final LinkWeigher DEFAULT_WEIGHER
protected TopologyService topologyService
protected HostService hostService
public java.util.Set<Path> getPaths(ElementId src, ElementId dst, LinkWeight weight)
PathService
getPaths
in interface PathService
src
- source elementdst
- destination elementweight
- edge-weight entitypublic java.util.Set<Path> getPaths(ElementId src, ElementId dst, LinkWeigher weigher)
PathService
getPaths
in interface PathService
src
- source elementdst
- destination elementweigher
- edge-weight entitypublic java.util.stream.Stream<Path> getKShortestPaths(ElementId src, ElementId dst, LinkWeigher weigher)
PathService
getKShortestPaths
in interface PathService
src
- source devicedst
- destination deviceweigher
- edge-weight entitypublic java.util.Set<DisjointPath> getDisjointPaths(ElementId src, ElementId dst, LinkWeight weight)
PathService
getDisjointPaths
in interface PathService
src
- source devicedst
- destination deviceweight
- edge-weight entitypublic java.util.Set<DisjointPath> getDisjointPaths(ElementId src, ElementId dst, LinkWeigher weigher)
PathService
getDisjointPaths
in interface PathService
src
- source devicedst
- destination deviceweigher
- edge-weight entitypublic java.util.Set<DisjointPath> getDisjointPaths(ElementId src, ElementId dst, LinkWeight weight, java.util.Map<Link,java.lang.Object> riskProfile)
PathService
getDisjointPaths
in interface PathService
src
- source devicedst
- destination deviceweight
- edge-weight entityriskProfile
- map of edges to risk profilespublic java.util.Set<DisjointPath> getDisjointPaths(ElementId src, ElementId dst, LinkWeigher weigher, java.util.Map<Link,java.lang.Object> riskProfile)
PathService
getDisjointPaths
in interface PathService
src
- source devicedst
- destination deviceweigher
- edge-weight entityriskProfile
- map of edges to risk profiles