|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
N
- the nodeE
- the edgepublic interface ICompoundEdgeFactory<N extends ICompoundNode<N,? extends ICompoundEdge<N,?>>,E extends ICompoundEdge<N,E>>
Factory that creates an edge within a particular child graph. It may work out the LCA node that the
edge should be added to. the newly created edge will be added to the child graoh returned by getOwningChildGraph()
.
Method Summary | |
---|---|
boolean |
canCreateEdge()
Tests if the edge can be created based on the node pair. |
E |
createEdge()
Creates a new directed edge from outNode to inNode which is
owned by the childCompoundGraph returned by getOwningChildGraph() . |
ICompoundGraph<N,E> |
getGraph()
Get the compound graph that owns this factory. |
IChildCompoundGraph<N,E> |
getOwningChildGraph()
The child graph that will contain any edges created by this factory. |
Methods inherited from interface uk.ed.inf.graph.directed.IDirectedEdgeFactory |
---|
getCurrentNodePair, setPair |
Methods inherited from interface uk.ed.inf.graph.basic.IBasicEdgeFactory |
---|
isValidNodePair |
Method Detail |
---|
ICompoundGraph<N,E> getGraph()
getGraph
in interface IBasicEdgeFactory<N extends ICompoundNode<N,? extends ICompoundEdge<N,?>>,E extends ICompoundEdge<N,E>>
boolean canCreateEdge()
canCreateEdge
in interface IBasicEdgeFactory<N extends ICompoundNode<N,? extends ICompoundEdge<N,?>>,E extends ICompoundEdge<N,E>>
IChildCompoundGraph<N,E> getOwningChildGraph()
java.lang.IllegalStateException
- if getPair() == null
.E createEdge()
outNode
to inNode
which is
owned by the childCompoundGraph returned by getOwningChildGraph()
.
createEdge
in interface IBasicEdgeFactory<N extends ICompoundNode<N,? extends ICompoundEdge<N,?>>,E extends ICompoundEdge<N,E>>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |