uk.ed.inf.graph.compound.impl
Class CompoundGraphCopyBuilder

java.lang.Object
  extended by uk.ed.inf.graph.compound.base.BaseGraphCopyBuilder
      extended by uk.ed.inf.graph.compound.impl.CompoundGraphCopyBuilder
All Implemented Interfaces:
ICompoundGraphCopyBuilder<BaseCompoundNode,BaseCompoundEdge>

public class CompoundGraphCopyBuilder
extends BaseGraphCopyBuilder


Constructor Summary
CompoundGraphCopyBuilder()
           
 
Method Summary
protected  void additionalCopyTasks()
          Provide a hook for super classes to perform additional operations after this class has completed copying the compound graph.
protected  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  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  BaseCompoundNode createCopyOfNode(BaseCompoundNode srcNode, BaseCompoundNode destParentNode)
          Create a compound node.
 
Methods inherited from class uk.ed.inf.graph.compound.base.BaseGraphCopyBuilder
getCopiedComponents, getCopiedNode, getDestinationChildGraph, getSourceSubgraph, makeCopy, setDestinatChildCompoundGraph, setSourceSubgraph
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompoundGraphCopyBuilder

CompoundGraphCopyBuilder()
Method Detail

createCopyOfNode

protected BaseCompoundNode createCopyOfNode(BaseCompoundNode srcNode,
                                            BaseCompoundNode destParentNode)
Description copied from class: BaseGraphCopyBuilder
Create a compound node. This node MUST be added to the child graph of the destParentNode.

Specified by:
createCopyOfNode in class BaseGraphCopyBuilder
Returns:

createCopyOfEdge

protected BaseCompoundEdge createCopyOfEdge(BaseCompoundEdge srcEdge,
                                            BaseChildCompoundGraph edgeOwner,
                                            BaseCompoundNode outNode,
                                            BaseCompoundNode inNode)
Description copied from class: BaseGraphCopyBuilder
Create a new edge that us a copy of another, which may be in a different graph this this one. This edge MUST be added to the destination child graph.

Specified by:
createCopyOfEdge in class BaseGraphCopyBuilder
Parameters:
srcEdge - The edge to copy.
edgeOwner - The compound node that will "own" this edge.
Returns:
The newly created edge.

additionalCopyTasks

protected void additionalCopyTasks()
Description copied from class: BaseGraphCopyBuilder
Provide a hook for super classes to perform additional operations after this class has completed copying the compound graph.

Specified by:
additionalCopyTasks in class BaseGraphCopyBuilder

additionalInitialisation

protected void additionalInitialisation()
Description copied from class: BaseGraphCopyBuilder
Provides a hook for super classes to initialise its data-structures before copying begins, but after this classes copy data-structures have been initialised.

Specified by:
additionalInitialisation in class BaseGraphCopyBuilder