wt.epm.retriever
Class ResultGraph.Node

java.lang.Object
  extended bywt.epm.retriever.graph.GraphNode
      extended bywt.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.


Field Summary
protected  Persistable nodeObject
           
 
Fields inherited from class wt.epm.retriever.graph.GraphNode
childLinks, children, id, parentLink, parentLinks, parents
 
Constructor Summary
protected ResultGraph.Node(Persistable nodeObject)
           
 
Method Summary
protected  GraphNode[] allocateGraphNodeArray(int length)
           
 ResultGraph.Link[] getChildLinks()
           
 ResultGraph.Node[] getChildren()
           
 Iterated getIterated()
           
 Mastered getMaster()
           
 Persistable getNodeObject()
           
 ResultGraph.Node getParent()
           
 ResultGraph.Link getParentLink()
          Incoming link which belongs to the spanning tree.
 ResultGraph.Link[] getParentLinks()
           
 ResultGraph.Node[] getParents()
           
 ResultGraph.Link[] getTreeChildLinks()
           
 ResultGraph.Node[] getTreeChildren()
           
 boolean isIncomplete()
          The corresponding Iterated was not found with given config.spec.
 
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
 

Field Detail

nodeObject

protected final Persistable nodeObject
Constructor Detail

ResultGraph.Node

protected ResultGraph.Node(Persistable nodeObject)
Method Detail

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