|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ed.inf.graph.compound.base.BaseCompoundNodePair
public abstract class BaseCompoundNodePair
Constructor Summary | |
---|---|
BaseCompoundNodePair()
|
Method Summary | |
---|---|
boolean |
containsNode(BaseCompoundNode node)
Is this node contained in this end pair. |
abstract BaseCompoundNode |
getInNode()
Get the node to which the end goes into. |
BaseCompoundNode |
getOneNode()
|
BaseCompoundNode |
getOtherNode(BaseCompoundNode node)
Get the other node to this one in the pair. |
abstract BaseCompoundNode |
getOutNode()
Get the node to which the end comes from. |
BaseCompoundNode |
getTwoNode()
|
boolean |
hasDirectedEnds(BaseCompoundNode outNode,
BaseCompoundNode inNode)
Tests if the ends exist in this directed pair. |
boolean |
hasEnds(BaseCompoundNode endOne,
BaseCompoundNode endTwo)
Tests if this end pair is made up of these two nodes. |
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.directed.IDirectedPair |
---|
reversedNodes |
Methods inherited from interface uk.ed.inf.graph.basic.IBasicPair |
---|
equals, hashCode |
Constructor Detail |
---|
public BaseCompoundNodePair()
Method Detail |
---|
public boolean containsNode(BaseCompoundNode node)
IBasicPair
containsNode
in interface IBasicPair<BaseCompoundNode,BaseCompoundEdge>
node
- The node to test, can be null.
public BaseCompoundNode getOneNode()
public BaseCompoundNode getOtherNode(BaseCompoundNode node)
IBasicPair
getOtherNode
in interface IBasicPair<BaseCompoundNode,BaseCompoundEdge>
node
- The node to test, cannot be null.
node
.public BaseCompoundNode getTwoNode()
public abstract BaseCompoundNode getInNode()
IDirectedPair
getInNode
in interface IDirectedPair<BaseCompoundNode,BaseCompoundEdge>
public abstract BaseCompoundNode getOutNode()
IDirectedPair
getOutNode
in interface IDirectedPair<BaseCompoundNode,BaseCompoundEdge>
public boolean hasEnds(BaseCompoundNode endOne, BaseCompoundNode endTwo)
IBasicPair
hasEnds(endOne, endTwo) == hasEnds(endTwo, endOne)
hasEnds
in interface IBasicPair<BaseCompoundNode,BaseCompoundEdge>
endOne
- The first node end.endTwo
- The second node end.
public boolean hasDirectedEnds(BaseCompoundNode outNode, BaseCompoundNode inNode)
IDirectedPair
hasDirectedEnds(outNode, inNode) != hasDirectedEnds(inNode, outNode)
.
hasDirectedEnds
in interface IDirectedPair<BaseCompoundNode,BaseCompoundEdge>
outNode
- the out node (from which the edge leaves).inNode
- the in node (to which the edge goes to).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |