public class ElementGraph
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ElementGraph.ElementGraphNode |
| Modifier and Type | Field and Description |
|---|---|
static int |
SEARCH_DOWN |
static int |
SEARCH_UP |
| Constructor and Description |
|---|
ElementGraph() |
ElementGraph(MessagePrinter mp,
int level) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDependentElem(Element elem,
Element lastElem,
java.lang.String descr)
sets dependency between elements.
|
ElementGraph.ElementGraphNode |
addElement(Element e,
int actElemId) |
boolean |
containsElement(Element e) |
void |
createDependentGroups() |
int |
getBlockId() |
int |
getDistId() |
int[] |
getElementOrder() |
java.util.List<ElementGraph.ElementGraphNode> |
getGraphNodesBelow(ElementGraph.ElementGraphNode egn) |
java.util.Vector<IterationBlock> |
getIterationBlocks() |
java.util.List<ElementGraph.ElementGraphNode> |
getRootNodes() |
java.util.List<ElementGraph.ElementGraphNode> |
getUpNodeList() |
boolean |
isCyclicGraph()
Tests to determine if the graph is cyclic by walking down from each top node
and looking for graph nodes that are visited more than once.
|
void |
setMessagePrinter(MessagePrinter mp,
int level) |
boolean |
sort()
Sort the ElementGraph elements and subgraphs in hydrologic order.
|
void |
trimGraphToContaining(Element[] elemArray)
Trims this element graph so that it only contains subgraphs that include the given elements by cloning this graph and removing unneeded parts
|
void |
writeGraph(java.lang.String message)
Print element graph details to previously defined MessagePrinter log
|
public static final int SEARCH_UP
public static final int SEARCH_DOWN
public ElementGraph()
public ElementGraph(MessagePrinter mp, int level)
public void setMessagePrinter(MessagePrinter mp, int level)
public ElementGraph.ElementGraphNode addElement(Element e, int actElemId)
public boolean containsElement(Element e)
public void addDependentElem(Element elem, Element lastElem, java.lang.String descr)
elem - lastElem - public java.util.List<ElementGraph.ElementGraphNode> getGraphNodesBelow(ElementGraph.ElementGraphNode egn)
public boolean isCyclicGraph()
public void createDependentGroups()
public boolean sort()
public java.util.List<ElementGraph.ElementGraphNode> getUpNodeList()
public java.util.List<ElementGraph.ElementGraphNode> getRootNodes()
public int[] getElementOrder()
public java.util.Vector<IterationBlock> getIterationBlocks()
public int getBlockId()
public int getDistId()
public void trimGraphToContaining(Element[] elemArray)
_resArray - public void writeGraph(java.lang.String message)
message - string printed on first line