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

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

public class CompoundEdge
extends ArchetypalCompoundEdge


Constructor Summary
CompoundEdge(ChildCompoundGraph owningSubgraph, int index, CompoundNode outNode, CompoundNode inNode)
           
 
Method Summary
 boolean isRemoved()
          Test if the edge has been removed from the graph.
protected  void removalAction(boolean removed)
          additional actions to be executed upon this node being marked as removed.
protected  void setRemoved(boolean removed)
          This should be used to set the removal status variable only.
 java.lang.String toString()
           
 
Methods inherited from class uk.ed.inf.graph.compound.archetypal.ArchetypalCompoundEdge
compareTo, getGraph, getIndex, getInNode, getOutNode, getOwningChildGraph
 
Methods inherited from class uk.ed.inf.graph.compound.base.BaseCompoundEdge
changeInEdge, changeOutNode, compareTo, getConnectedNodes, hasDirectedEnds, hasEnds, isSelfEdge, markRemoved
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CompoundEdge

CompoundEdge(ChildCompoundGraph owningSubgraph,
             int index,
             CompoundNode outNode,
             CompoundNode inNode)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

removalAction

protected void removalAction(boolean removed)
Description copied from class: BaseCompoundEdge
additional actions to be executed upon this node being marked as removed.

Specified by:
removalAction in class BaseCompoundEdge

setRemoved

protected void setRemoved(boolean removed)
Description copied from class: BaseCompoundEdge
This should be used to set the removal status variable only. No other actions# should be performed here. To perform an action on removal then use BaseCompoundEdge.removalAction(boolean).

Specified by:
setRemoved in class BaseCompoundEdge
Parameters:
removed - the removal status: true means the edge is removed.

isRemoved

public boolean isRemoved()
Description copied from interface: IBasicEdge
Test if the edge has been removed from the graph.

Specified by:
isRemoved in interface IBasicEdge<BaseCompoundNode,BaseCompoundEdge>
Specified by:
isRemoved in class BaseCompoundEdge
Returns:
true if removed, false otherwise.