|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ed.inf.graph.compound.base.BaseCompoundEdge
public abstract class BaseCompoundEdge
Constructor Summary | |
---|---|
protected |
BaseCompoundEdge()
|
Method Summary | |
---|---|
protected void |
changeInEdge()
Ensures that edge is added to In Node |
protected void |
changeOutNode()
Ensures that edge is added to Out Node |
int |
compareTo(BaseCompoundEdge o)
|
IDirectedPair<BaseCompoundNode,BaseCompoundEdge> |
getConnectedNodes()
Get the ends of |
abstract BaseCompoundGraph |
getGraph()
Get the owning graph of this edge. |
abstract int |
getIndex()
Get the index that uniquely identifies the edge within its owning graph. |
protected abstract BaseCompoundNode |
getInNode()
|
protected abstract BaseCompoundNode |
getOutNode()
|
abstract BaseChildCompoundGraph |
getOwningChildGraph()
|
boolean |
hasDirectedEnds(IDirectedPair<? super BaseCompoundNode,? super BaseCompoundEdge> ends)
Tests if this directed edge has these ends. |
boolean |
hasEnds(IBasicPair<? super BaseCompoundNode,? super BaseCompoundEdge> ends)
Tests if this edge has these ends. |
abstract boolean |
isRemoved()
Test if the edge has been removed from the graph. |
boolean |
isSelfEdge()
Is this a self edge, i.e. |
void |
markRemoved(boolean removed)
Used to reset the removal status of a graph edge or node. |
protected abstract void |
removalAction(boolean removed)
additional actions to be executed upon this node being marked as removed. |
protected abstract void |
setRemoved(boolean removed)
This should be used to set the removal status variable only. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected BaseCompoundEdge()
Method Detail |
---|
protected abstract BaseCompoundNode getInNode()
protected final void changeInEdge()
java.lang.IllegalStateException
- if getInNode() == nullprotected abstract BaseCompoundNode getOutNode()
protected abstract void setRemoved(boolean removed)
removalAction(boolean)
.
removed
- the removal status: true means the edge is removed.protected final void changeOutNode()
java.lang.IllegalStateException
- if getOutNode() == nullpublic final IDirectedPair<BaseCompoundNode,BaseCompoundEdge> getConnectedNodes()
IBasicEdge
getConnectedNodes
in interface IBasicEdge<BaseCompoundNode,BaseCompoundEdge>
getConnectedNodes
in interface IDirectedEdge<BaseCompoundNode,BaseCompoundEdge>
public abstract BaseChildCompoundGraph getOwningChildGraph()
getOwningChildGraph
in interface ICompoundEdge<BaseCompoundNode,BaseCompoundEdge>
public abstract BaseCompoundGraph getGraph()
IBasicEdge
getGraph
in interface IBasicEdge<BaseCompoundNode,BaseCompoundEdge>
getGraph
in interface ICompoundEdge<BaseCompoundNode,BaseCompoundEdge>
public abstract int getIndex()
IBasicEdge
getIndex
in interface IBasicEdge<BaseCompoundNode,BaseCompoundEdge>
public final int compareTo(BaseCompoundEdge o)
compareTo
in interface java.lang.Comparable<BaseCompoundEdge>
public abstract boolean isRemoved()
IBasicEdge
isRemoved
in interface IBasicEdge<BaseCompoundNode,BaseCompoundEdge>
true
if removed, false otherwise.public final void markRemoved(boolean removed)
IRestorableGraphElement
markRemoved
in interface IRestorableGraphElement
protected abstract void removalAction(boolean removed)
public final boolean hasEnds(IBasicPair<? super BaseCompoundNode,? super BaseCompoundEdge> ends)
IBasicEdge
hasEnds
in interface IBasicEdge<BaseCompoundNode,BaseCompoundEdge>
ends
- The ends to be tested.
public final boolean hasDirectedEnds(IDirectedPair<? super BaseCompoundNode,? super BaseCompoundEdge> ends)
IDirectedEdge
hasDirectedEnds
in interface IDirectedEdge<BaseCompoundNode,BaseCompoundEdge>
ends
- The ends to be tested.
public final boolean isSelfEdge()
IBasicEdge
isSelfEdge
in interface IBasicEdge<BaseCompoundNode,BaseCompoundEdge>
true
if removed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |