wt.epm.retriever
Class ResultGraph.Node
java.lang.Object
wt.epm.retriever.graph.GraphNode
wt.epm.retriever.ResultGraph.Node
- Enclosing class:
- ResultGraph
- public static class ResultGraph.Node
- extends GraphNode
Represents a node of the graph. Holds a reference to the corresponding
Iterated object, as well as to all incident links/nodes.
The constructor does not take lists of incident links as parameters,
just because the Link object constructor takes incident Nodes. But
initParents() and initChildren() must be called upon Node construction
before any other method - otherwise any request for incident links
will just produce NullPointerException.
Methods inherited from class wt.epm.retriever.graph.GraphNode |
getChildEdges, getChildNodes, getId, getParentEdge, getParentEdges, getParentNode, getParentNodes, getTreeChildEdges, getTreeChildNodes, initChildren, initParents, isRoot, isSource |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
nodeObject
protected final Persistable nodeObject
ResultGraph.Node
protected ResultGraph.Node(Persistable nodeObject)
getNodeObject
public Persistable getNodeObject()
getIterated
public Iterated getIterated()
getMaster
public Mastered getMaster()
isIncomplete
public boolean isIncomplete()
- The corresponding Iterated was not found with given config.spec.
- Returns:
- boolean
getParentLinks
public final ResultGraph.Link[] getParentLinks()
getParentLink
public final ResultGraph.Link getParentLink()
- Incoming link which belongs to the spanning tree.
- Returns:
- Link null for the tree root node(s)
getChildLinks
public final ResultGraph.Link[] getChildLinks()
getTreeChildLinks
public final ResultGraph.Link[] getTreeChildLinks()
getParents
public final ResultGraph.Node[] getParents()
getParent
public final ResultGraph.Node getParent()
getChildren
public final ResultGraph.Node[] getChildren()
getTreeChildren
public final ResultGraph.Node[] getTreeChildren()
allocateGraphNodeArray
protected GraphNode[] allocateGraphNodeArray(int length)
- Overrides:
allocateGraphNodeArray
in class GraphNode