wt.epm.retriever
Class ResultGraph.Link

java.lang.Object
  extended bywt.epm.retriever.graph.GraphEdge
      extended bywt.epm.retriever.ResultGraph.Link
Enclosing class:
ResultGraph

public static class ResultGraph.Link
extends GraphEdge

Represents a link (edge) of the graph. Holds a reference to the corresponding BinaryLink object, as well as to both incident nodes. The "direction" of the link is from node A to node B, which may not agree with roles A and B of the BinaryLink if the graph was built with parameter isInverted==true.


Field Summary
private  BinaryLink linkObject
           
 
Fields inherited from class wt.epm.retriever.graph.GraphEdge
id, nodeA, nodeB, type
 
Constructor Summary
protected ResultGraph.Link(BinaryLink linkObject, ResultGraph.Node nodeA, ResultGraph.Node nodeB)
           
 
Method Summary
 ResultGraph.Node getChildNode()
           
 BinaryLink getLinkObject()
           
 ResultGraph.Node getParentNode()
           
 
Methods inherited from class wt.epm.retriever.graph.GraphEdge
getChildGraphNode, getId, getLinkType, getParentGraphNode, isTreeLink
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

linkObject

private final BinaryLink linkObject
Constructor Detail

ResultGraph.Link

protected ResultGraph.Link(BinaryLink linkObject,
                           ResultGraph.Node nodeA,
                           ResultGraph.Node nodeB)
Method Detail

getLinkObject

public BinaryLink getLinkObject()

getParentNode

public ResultGraph.Node getParentNode()

getChildNode

public final ResultGraph.Node getChildNode()