public class StreamGraph extends Object
ERROR_DOT_FILE_NAME
and DOT_FILE_PATH
.Modifier and Type | Field and Description |
---|---|
static String |
DOT_FILE_PATH
Property denoting the path to write all stream graph dot files.
|
static String |
ERROR_DOT_FILE_NAME
Property denoting the path and filename to write the failed stream graph dot file.
|
Constructor and Description |
---|
StreamGraph() |
Modifier and Type | Method and Description |
---|---|
void |
addHead(Duct head) |
void |
addPath(Duct lhs,
Duct rhs) |
void |
addPath(Duct lhs,
int ordinal,
Duct rhs) |
void |
addTail(Duct tail) |
static LinkedList<List<Duct>> |
asPathList(List<org.jgrapht.GraphPath<Duct,DuctGraph.Ordinal>> paths) |
void |
bind() |
void |
cleanup()
Calls cleanup starting at the head and working forwards
|
int |
countAllEventingPathsTo(Duct duct)
Returns all free paths to the current duct, usually a GroupGate.
|
protected Duct |
createFork(Duct[] allNext) |
Duct |
createNextFor(Duct current) |
protected Duct |
createOpenReducingWindow(Duct next) |
protected Duct |
createOpenWindow(Duct next) |
Duct[] |
findAllNextFor(Duct current) |
Duct[] |
findAllPreviousFor(Duct current) |
Collection<Duct> |
getAllDucts() |
Collection<Duct> |
getHeads() |
Map<Duct,Integer> |
getOrdinalMap(Duct current) |
protected Object |
getProperty(String name) |
org.jgrapht.DirectedGraph |
getReversedGraph() |
org.jgrapht.traverse.TopologicalOrderIterator<Duct,Integer> |
getReversedTopologicalOrderIterator() |
Collection<Duct> |
getTails() |
org.jgrapht.traverse.TopologicalOrderIterator<Duct,Integer> |
getTopologicalOrderIterator() |
int |
ordinalBetween(Duct lhs,
Duct rhs) |
void |
prepare()
Calls prepare starting at the tail and working backwards
|
void |
printGraph(String filename) |
void |
printGraph(String id,
String classifier,
int discriminator) |
void |
printGraphError() |
public static final String ERROR_DOT_FILE_NAME
public static final String DOT_FILE_PATH
public StreamGraph()
protected Object getProperty(String name)
public void bind()
public void prepare()
public void cleanup()
public Collection<Duct> getHeads()
public Collection<Duct> getTails()
public Duct[] findAllNextFor(Duct current)
public Duct[] findAllPreviousFor(Duct current)
public Map<Duct,Integer> getOrdinalMap(Duct current)
public Duct createNextFor(Duct current)
protected Duct createOpenWindow(Duct next)
protected Duct createOpenReducingWindow(Duct next)
protected Duct createFork(Duct[] allNext)
public int countAllEventingPathsTo(Duct duct)
duct
- of type Ductpublic int ordinalBetween(Duct lhs, Duct rhs)
public static LinkedList<List<Duct>> asPathList(List<org.jgrapht.GraphPath<Duct,DuctGraph.Ordinal>> paths)
public org.jgrapht.traverse.TopologicalOrderIterator<Duct,Integer> getTopologicalOrderIterator()
public org.jgrapht.traverse.TopologicalOrderIterator<Duct,Integer> getReversedTopologicalOrderIterator()
public org.jgrapht.DirectedGraph getReversedGraph()
public Collection<Duct> getAllDucts()
public void printGraphError()
public void printGraph(String id, String classifier, int discriminator)
public void printGraph(String filename)
Copyright © 2007-2015 Concurrent, Inc. All Rights Reserved.