|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ed.inf.graph.compound.base.BaseGraphCopyBuilder
public abstract class BaseGraphCopyBuilder
Constructor Summary | |
---|---|
BaseGraphCopyBuilder()
|
Method Summary | |
---|---|
protected abstract void |
additionalCopyTasks()
Provide a hook for super classes to perform additional operations after this class has completed copying the compound graph. |
protected abstract void |
additionalInitialisation()
Provides a hook for super classes to initialise its data-structures before copying begins, but after this classes copy data-structures have been initialised. |
protected abstract BaseCompoundEdge |
createCopyOfEdge(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 |
createCopyOfNode(BaseCompoundNode srcNode,
BaseCompoundNode destParentNode)
Create a compound node. |
BaseSubCompoundGraph |
getCopiedComponents()
Gets the copied nodes and edges that were created in the destination graph as a subgraph of the destination graph. |
protected BaseCompoundNode |
getCopiedNode(BaseCompoundNode originalNode)
Gets the equivalent copied node to the specified node, if it exists. |
BaseChildCompoundGraph |
getDestinationChildGraph()
|
BaseSubCompoundGraph |
getSourceSubgraph()
|
void |
makeCopy()
Make a copy of subgraph into the destination graph |
void |
setDestinatChildCompoundGraph(IChildCompoundGraph<? extends BaseCompoundNode,? extends BaseCompoundEdge> childCompoundGraph)
Sets the child compound graph that is to be copied to. |
void |
setSourceSubgraph(ISubCompoundGraph<? extends BaseCompoundNode,? extends BaseCompoundEdge> sourceSubCompoundGraph)
Sets the subgraph which is to be copied. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BaseGraphCopyBuilder()
Method Detail |
---|
public void setSourceSubgraph(ISubCompoundGraph<? extends BaseCompoundNode,? extends BaseCompoundEdge> sourceSubCompoundGraph)
ICompoundGraphCopyBuilder
setSourceSubgraph
in interface ICompoundGraphCopyBuilder<BaseCompoundNode,BaseCompoundEdge>
sourceSubCompoundGraph
- source subgraph to be copied
java.lang.IllegalArgumentException
- if sourceSubCompoundGraph
is not of type BaseSubCompoundGraph
.uk.ed.inf.graph.compound.base.ICompoundGraphCopyBuilder#setSourceSubgraph(uk.ed.inf.graph.compound.ISubCompoundGraph)
public void setDestinatChildCompoundGraph(IChildCompoundGraph<? extends BaseCompoundNode,? extends BaseCompoundEdge> childCompoundGraph)
ICompoundGraphCopyBuilder
setDestinatChildCompoundGraph
in interface ICompoundGraphCopyBuilder<BaseCompoundNode,BaseCompoundEdge>
sourceSubCompoundGraph
- target child graph to be copied to
java.lang.IllegalArgumentException
- if childCompoundGraph
is not of type BaseChildCompoundGraph
.uk.ed.inf.graph.compound.base.ICompoundGraphCopyBuilder#setDestinatChildCompoundGraph(uk.ed.inf.graph.compound.base.BaseChildCompoundGraph)
protected final BaseCompoundNode getCopiedNode(BaseCompoundNode originalNode)
originalNode
- the original node that we want to get the copy of.
public void makeCopy()
ICompoundGraphCopyBuilder
makeCopy
in interface ICompoundGraphCopyBuilder<BaseCompoundNode,BaseCompoundEdge>
protected abstract void additionalInitialisation()
protected abstract void additionalCopyTasks()
public final BaseSubCompoundGraph getSourceSubgraph()
getSourceSubgraph
in interface ICompoundGraphCopyBuilder<BaseCompoundNode,BaseCompoundEdge>
public final BaseChildCompoundGraph getDestinationChildGraph()
getDestinationChildGraph
in interface ICompoundGraphCopyBuilder<BaseCompoundNode,BaseCompoundEdge>
protected abstract BaseCompoundNode createCopyOfNode(BaseCompoundNode srcNode, BaseCompoundNode destParentNode)
destParentNode
.
srcNode
- destParentNode
- newNodeIndex
-
protected abstract BaseCompoundEdge createCopyOfEdge(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 getCopiedComponents()
ICompoundGraphCopyBuilder
getCopiedComponents
in interface ICompoundGraphCopyBuilder<BaseCompoundNode,BaseCompoundEdge>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |