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

java.lang.Object
  extended by uk.ed.inf.graph.compound.base.BaseChildCompoundGraph
      extended by uk.ed.inf.graph.compound.archetypal.ArchetypalChildCompoundGraph
          extended by uk.ed.inf.graph.compound.impl.ChildCompoundGraph
All Implemented Interfaces:
IBasicGraph<BaseCompoundNode,BaseCompoundEdge>, IChildCompoundGraph<BaseCompoundNode,BaseCompoundEdge>, ICompoundGraph<BaseCompoundNode,BaseCompoundEdge>, IModifiableChildCompoundGraph<BaseCompoundNode,BaseCompoundEdge>, IDirectedGraph<BaseCompoundNode,BaseCompoundEdge>

public class ChildCompoundGraph
extends ArchetypalChildCompoundGraph


Constructor Summary
ChildCompoundGraph(CompoundNode root)
           
 
Method Summary
 ChildCompoundEdgeFactory edgeFactory()
          Gets the edgeFactory for this class.
 CompoundNode getRootNode()
          Get the root node of this graph.
protected  boolean hasPassedAdditionalValidation()
          A hook method that should be used to provide addition validation for the class inheriting from this one.
 CompoundNodeFactory nodeFactory()
           
 
Methods inherited from class uk.ed.inf.graph.compound.archetypal.ArchetypalChildCompoundGraph
addNewEdge, addNewNode
 
Methods inherited from class uk.ed.inf.graph.compound.base.BaseChildCompoundGraph
canCopyHere, canMoveHere, containsConnection, containsConnection, containsDirectedEdge, containsDirectedEdge, containsEdge, containsEdge, containsNode, containsNode, copyHere, createEdgeSet, createNodeSet, edgeIterator, getCopiedComponents, getEdge, getEdgeSet, getMovedComponents, getNode, getNodeSet, getNumEdges, getNumNodes, getSuperGraph, isInducedSubgraph, isValid, moveHere, nodeIterator, unfilteredEdgeIterator, unfilteredNodeIterator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChildCompoundGraph

ChildCompoundGraph(CompoundNode root)
Method Detail

getRootNode

public CompoundNode getRootNode()
Description copied from interface: ICompoundGraph
Get the root node of this graph.

Specified by:
getRootNode in interface ICompoundGraph<BaseCompoundNode,BaseCompoundEdge>
Overrides:
getRootNode in class ArchetypalChildCompoundGraph
Returns:
The root node, which cannot be null.

edgeFactory

public ChildCompoundEdgeFactory edgeFactory()
Description copied from interface: IModifiableChildCompoundGraph
Gets the edgeFactory for this class. This factory is a singleton so this method must always return the same instance of the factory. The factory is the only way that new edges can be added to this graph.

Specified by:
edgeFactory in interface IModifiableChildCompoundGraph<BaseCompoundNode,BaseCompoundEdge>
Specified by:
edgeFactory in class BaseChildCompoundGraph
Returns:
The edge factory.

nodeFactory

public CompoundNodeFactory nodeFactory()
Specified by:
nodeFactory in interface IModifiableChildCompoundGraph<BaseCompoundNode,BaseCompoundEdge>
Specified by:
nodeFactory in class BaseChildCompoundGraph

hasPassedAdditionalValidation

protected boolean hasPassedAdditionalValidation()
Description copied from class: BaseChildCompoundGraph
A hook method that should be used to provide addition validation for the class inheriting from this one.

Specified by:
hasPassedAdditionalValidation in class BaseChildCompoundGraph
Returns: