uk.ed.inf.graph.compound.impl
Class CompoundEdge
java.lang.Object
uk.ed.inf.graph.compound.base.BaseCompoundEdge
uk.ed.inf.graph.compound.archetypal.ArchetypalCompoundEdge
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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
CompoundEdge
CompoundEdge(ChildCompoundGraph owningSubgraph,
int index,
CompoundNode outNode,
CompoundNode inNode)
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.