wt.epm.retriever.graph
Class GraphEdge

java.lang.Object
  extended bywt.epm.retriever.graph.GraphEdge
Direct Known Subclasses:
ResultGraph.Link

public class GraphEdge
extends Object

Represents a link (edge) of a graph. Holds references to both incident nodes.


Field Summary
protected  int id
           
protected  GraphNode nodeA
           
protected  GraphNode nodeB
           
protected  int type
           
 
Constructor Summary
protected GraphEdge(GraphNode nodeA, GraphNode nodeB)
           
 
Method Summary
 GraphNode getChildGraphNode()
           
 int getId()
          The number of this Link in the getLinks() array.
 int getLinkType()
          LNK_TREE, LNK_JOINT or LNK_INVERT (see AbstractGraph).
 GraphNode getParentGraphNode()
           
 boolean isTreeLink()
          Shortcut to getLinkType()==LNK_TREE
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nodeA

protected GraphNode nodeA

nodeB

protected GraphNode nodeB

id

protected int id

type

protected int type
Constructor Detail

GraphEdge

protected GraphEdge(GraphNode nodeA,
                    GraphNode nodeB)
Method Detail

getParentGraphNode

public final GraphNode getParentGraphNode()

getChildGraphNode

public final GraphNode getChildGraphNode()

getId

public final int getId()
The number of this Link in the getLinks() array.

Returns:
int

getLinkType

public final int getLinkType()
LNK_TREE, LNK_JOINT or LNK_INVERT (see AbstractGraph).

Returns:
int

isTreeLink

public final boolean isTreeLink()
Shortcut to getLinkType()==LNK_TREE

Returns:
boolean