uk.ed.inf.graph.compound.archetypal
Class ArchetypalCompoundEdge

java.lang.Object
  extended by uk.ed.inf.graph.compound.base.BaseCompoundEdge
      extended by uk.ed.inf.graph.compound.archetypal.ArchetypalCompoundEdge
All Implemented Interfaces:
java.lang.Comparable<BaseCompoundEdge>, IBasicEdge<BaseCompoundNode,BaseCompoundEdge>, ICompoundEdge<BaseCompoundNode,BaseCompoundEdge>, IDirectedEdge<BaseCompoundNode,BaseCompoundEdge>, IRestorableGraphElement
Direct Known Subclasses:
CompoundEdge

public abstract class ArchetypalCompoundEdge
extends BaseCompoundEdge


Constructor Summary
protected ArchetypalCompoundEdge(ArchetypalChildCompoundGraph owningSubgraph, int index, ArchetypalCompoundNode outNode, ArchetypalCompoundNode inNode)
           
 
Method Summary
 int compareTo(ArchetypalCompoundEdge o)
           
 BaseCompoundGraph getGraph()
          Get the owning graph of this edge.
 int getIndex()
          Get the index that uniquely identifies the edge within its owning graph.
protected  ArchetypalCompoundNode getInNode()
           
protected  ArchetypalCompoundNode getOutNode()
           
 ArchetypalChildCompoundGraph getOwningChildGraph()
           
 
Methods inherited from class uk.ed.inf.graph.compound.base.BaseCompoundEdge
changeInEdge, changeOutNode, compareTo, getConnectedNodes, hasDirectedEnds, hasEnds, isRemoved, isSelfEdge, markRemoved, removalAction, setRemoved
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArchetypalCompoundEdge

protected ArchetypalCompoundEdge(ArchetypalChildCompoundGraph owningSubgraph,
                                 int index,
                                 ArchetypalCompoundNode outNode,
                                 ArchetypalCompoundNode inNode)
Method Detail

getInNode

protected final ArchetypalCompoundNode getInNode()
Specified by:
getInNode in class BaseCompoundEdge

getOutNode

protected final ArchetypalCompoundNode getOutNode()
Specified by:
getOutNode in class BaseCompoundEdge

getOwningChildGraph

public ArchetypalChildCompoundGraph getOwningChildGraph()
Specified by:
getOwningChildGraph in interface ICompoundEdge<BaseCompoundNode,BaseCompoundEdge>
Specified by:
getOwningChildGraph in class BaseCompoundEdge

getGraph

public BaseCompoundGraph getGraph()
Description copied from interface: IBasicEdge
Get the owning graph of this edge.

Specified by:
getGraph in interface IBasicEdge<BaseCompoundNode,BaseCompoundEdge>
Specified by:
getGraph in interface ICompoundEdge<BaseCompoundNode,BaseCompoundEdge>
Specified by:
getGraph in class BaseCompoundEdge
Returns:
the owning graph.

getIndex

public int getIndex()
Description copied from interface: IBasicEdge
Get the index that uniquely identifies the edge within its owning graph.

Specified by:
getIndex in interface IBasicEdge<BaseCompoundNode,BaseCompoundEdge>
Specified by:
getIndex in class BaseCompoundEdge
Returns:
The index, which is a While number (>-0).

compareTo

public int compareTo(ArchetypalCompoundEdge o)