|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ed.inf.graph.compound.base.BaseGraphMoveBuilder
public abstract class BaseGraphMoveBuilder
Constructor Summary | |
---|---|
BaseGraphMoveBuilder()
|
Method Summary | |
---|---|
protected abstract void |
additionalInitialisation()
Provides a hook for super classes to initialise its data-structures before copying begins, but after this classes move data-structures have been initialised. |
protected abstract void |
additionalMoveTasks()
Provide a hook for super classes to perform additional operations after this class has completed moving the compound graph. |
protected abstract BaseCompoundEdge |
createMoveOfEdge(BaseCompoundEdge srcEdge,
BaseChildCompoundGraph edgeOwner,
BaseCompoundNode outNode,
BaseCompoundNode inNode)
Create a new edge that us a copy of another, which may be in a different graph this this one. |
protected abstract BaseCompoundNode |
createMoveOfNode(BaseCompoundNode srcNode,
BaseCompoundNode destParentNode)
Create a compound node. |
BaseChildCompoundGraph |
getDestinationChildGraph()
|
BaseSubCompoundGraph |
getMovedComponents()
Gets the moved nodes and edges that were created in the destination graph as a subgraph of the destination graph. |
BaseSubCompoundGraph |
getSourceSubgraph()
|
void |
makeMove()
Make a move of subgraph into the destination graph |
void |
setDestinatChildCompoundGraph(IChildCompoundGraph<? extends BaseCompoundNode,? extends BaseCompoundEdge> childCompoundGraph)
Sets the child compound graph that is to be moved to. |
void |
setSourceSubgraph(ISubCompoundGraph<? extends BaseCompoundNode,? extends BaseCompoundEdge> sourceSubCompoundGraph)
Sets the subgraph which is to be moved. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BaseGraphMoveBuilder()
Method Detail |
---|
public void setSourceSubgraph(ISubCompoundGraph<? extends BaseCompoundNode,? extends BaseCompoundEdge> sourceSubCompoundGraph)
ICompoundGraphMoveBuilder
setSourceSubgraph
in interface ICompoundGraphMoveBuilder<BaseCompoundNode,BaseCompoundEdge>
sourceSubCompoundGraph
- source subgraph to be moved
java.lang.IllegalArgumentException
- if sourceSubCompoundGraph
is not of type BaseSubCompoundGraph
.uk.ed.inf.graph.compound.base.ICompoundGraphMoveBuilder#setSourceSubgraph(uk.ed.inf.graph.compound.ISubCompoundGraph)
public void setDestinatChildCompoundGraph(IChildCompoundGraph<? extends BaseCompoundNode,? extends BaseCompoundEdge> childCompoundGraph)
ICompoundGraphMoveBuilder
setDestinatChildCompoundGraph
in interface ICompoundGraphMoveBuilder<BaseCompoundNode,BaseCompoundEdge>
sourceSubCompoundGraph
- target child graph to be moved to
java.lang.IllegalArgumentException
- if childCompoundGraph
is not of type BaseChildCompoundGraph
.uk.ed.inf.graph.compound.base.ICompoundGraphMoveBuilder#setDestinatChildCompoundGraph(uk.ed.inf.graph.compound.base.BaseChildCompoundGraph)
public void makeMove()
ICompoundGraphMoveBuilder
makeMove
in interface ICompoundGraphMoveBuilder<BaseCompoundNode,BaseCompoundEdge>
protected abstract void additionalInitialisation()
protected abstract void additionalMoveTasks()
public final BaseSubCompoundGraph getSourceSubgraph()
getSourceSubgraph
in interface ICompoundGraphMoveBuilder<BaseCompoundNode,BaseCompoundEdge>
public final BaseChildCompoundGraph getDestinationChildGraph()
getDestinationChildGraph
in interface ICompoundGraphMoveBuilder<BaseCompoundNode,BaseCompoundEdge>
protected abstract BaseCompoundNode createMoveOfNode(BaseCompoundNode srcNode, BaseCompoundNode destParentNode)
destParentNode
.
srcNode
- destParentNode
- newNodeIndex
-
protected abstract BaseCompoundEdge createMoveOfEdge(BaseCompoundEdge srcEdge, BaseChildCompoundGraph edgeOwner, BaseCompoundNode outNode, BaseCompoundNode inNode)
srcEdge
- The edge to copy.edgeOwner
- The compound node that will "own" this edge.newEdgeIndex
- The index to use for the newly created edge.
public BaseSubCompoundGraph getMovedComponents()
ICompoundGraphMoveBuilder
getMovedComponents
in interface ICompoundGraphMoveBuilder<BaseCompoundNode,BaseCompoundEdge>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |