uk.ed.inf.graph.compound.impl
Class CompoundNodePair

java.lang.Object
  extended by uk.ed.inf.graph.compound.base.BaseCompoundNodePair
      extended by uk.ed.inf.graph.compound.impl.CompoundNodePair
All Implemented Interfaces:
IBasicPair<BaseCompoundNode,BaseCompoundEdge>, IDirectedPair<BaseCompoundNode,BaseCompoundEdge>

public class CompoundNodePair
extends BaseCompoundNodePair


Constructor Summary
CompoundNodePair(CompoundNode outNode, CompoundNode inNode)
           
 
Method Summary
 BaseCompoundNode getInNode()
          Get the node to which the end goes into.
 BaseCompoundNode getOutNode()
          Get the node to which the end comes from.
 CompoundNodePair reversedNodes()
          Create a new node pair, with the nodes reversed as if this edge was pointing in the other direction.
 
Methods inherited from class uk.ed.inf.graph.compound.base.BaseCompoundNodePair
containsNode, getOneNode, getOtherNode, getTwoNode, hasDirectedEnds, hasEnds
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface uk.ed.inf.graph.basic.IBasicPair
equals, hashCode
 

Constructor Detail

CompoundNodePair

public CompoundNodePair(CompoundNode outNode,
                        CompoundNode inNode)
Method Detail

getInNode

public BaseCompoundNode getInNode()
Description copied from interface: IDirectedPair
Get the node to which the end goes into.

Specified by:
getInNode in interface IDirectedPair<BaseCompoundNode,BaseCompoundEdge>
Specified by:
getInNode in class BaseCompoundNodePair
Returns:
The node, which will not be null.

getOutNode

public BaseCompoundNode getOutNode()
Description copied from interface: IDirectedPair
Get the node to which the end comes from.

Specified by:
getOutNode in interface IDirectedPair<BaseCompoundNode,BaseCompoundEdge>
Specified by:
getOutNode in class BaseCompoundNodePair
Returns:
The node, which will not be null.

reversedNodes

public CompoundNodePair reversedNodes()
Description copied from interface: IDirectedPair
Create a new node pair, with the nodes reversed as if this edge was pointing in the other direction.

Returns:
the new directed edge with the in and out nodes switched relative to this one. Cannot be null.