public class ElementGraphs
extends java.lang.Object
Constructor and Description |
---|
ElementGraphs() |
Modifier and Type | Method and Description |
---|---|
static java.util.List<java.util.List<FlowElement>> |
asPathList(java.util.List<org.jgrapht.GraphPath<FlowElement,Scope>> paths) |
static java.util.Map<java.lang.Integer,java.lang.Integer> |
countOrderedDirectPathsBetween(org.jgrapht.graph.SimpleDirectedGraph<FlowElement,Scope> graph,
FlowElement from,
Splice to)
for every incoming stream to the splice, gets the count of paths.
|
static java.util.Map<java.lang.Integer,java.lang.Integer> |
countOrderedDirectPathsBetween(org.jgrapht.graph.SimpleDirectedGraph<FlowElement,Scope> graph,
FlowElement from,
Splice to,
boolean skipTaps) |
static int |
countPaths(java.util.Map<java.lang.Integer,java.lang.Integer> pathCounts) |
static int |
countTypesBetween(org.jgrapht.graph.SimpleDirectedGraph<FlowElement,Scope> graph,
FlowElement from,
Splice to,
java.lang.Class type) |
static java.util.List<org.jgrapht.GraphPath<FlowElement,Scope>> |
getAllDirectPathsBetween(org.jgrapht.graph.SimpleDirectedGraph<FlowElement,Scope> graph,
FlowElement from,
FlowElement to)
All paths that lead from to to without crossing a Tap/Group boundary
|
static java.util.List<org.jgrapht.GraphPath<FlowElement,Scope>> |
getAllShortestPathsBetween(org.jgrapht.graph.SimpleDirectedGraph<FlowElement,Scope> graph,
FlowElement from,
FlowElement to)
Method getAllShortestPathsBetween ...
|
static boolean |
isBothAccumulatedAndStreamedPath(java.util.Map<java.lang.Integer,java.lang.Integer> pathCounts) |
static boolean |
isOnlyAccumulatedPath(java.util.Map<java.lang.Integer,java.lang.Integer> pathCounts) |
static boolean |
isOnlyStreamedPath(java.util.Map<java.lang.Integer,java.lang.Integer> pathCounts) |
static int |
pathPositionInto(org.jgrapht.GraphPath<FlowElement,Scope> path,
Splice to) |
public static java.util.List<org.jgrapht.GraphPath<FlowElement,Scope>> getAllShortestPathsBetween(org.jgrapht.graph.SimpleDirectedGraph<FlowElement,Scope> graph, FlowElement from, FlowElement to)
graph
- from
- of type FlowElementto
- of type FlowElementpublic static java.util.List<java.util.List<FlowElement>> asPathList(java.util.List<org.jgrapht.GraphPath<FlowElement,Scope>> paths)
public static java.util.List<org.jgrapht.GraphPath<FlowElement,Scope>> getAllDirectPathsBetween(org.jgrapht.graph.SimpleDirectedGraph<FlowElement,Scope> graph, FlowElement from, FlowElement to)
graph
- from
- to
- public static int countTypesBetween(org.jgrapht.graph.SimpleDirectedGraph<FlowElement,Scope> graph, FlowElement from, Splice to, java.lang.Class type)
public static java.util.Map<java.lang.Integer,java.lang.Integer> countOrderedDirectPathsBetween(org.jgrapht.graph.SimpleDirectedGraph<FlowElement,Scope> graph, FlowElement from, Splice to)
graph
- from
- to
- public static java.util.Map<java.lang.Integer,java.lang.Integer> countOrderedDirectPathsBetween(org.jgrapht.graph.SimpleDirectedGraph<FlowElement,Scope> graph, FlowElement from, Splice to, boolean skipTaps)
public static boolean isBothAccumulatedAndStreamedPath(java.util.Map<java.lang.Integer,java.lang.Integer> pathCounts)
public static boolean isOnlyStreamedPath(java.util.Map<java.lang.Integer,java.lang.Integer> pathCounts)
public static boolean isOnlyAccumulatedPath(java.util.Map<java.lang.Integer,java.lang.Integer> pathCounts)
public static int countPaths(java.util.Map<java.lang.Integer,java.lang.Integer> pathCounts)
public static int pathPositionInto(org.jgrapht.GraphPath<FlowElement,Scope> path, Splice to)