uk.ed.inf.graph.compound.base
Class BaseCompoundGraphStateHandler

java.lang.Object
  extended by uk.ed.inf.graph.compound.base.BaseCompoundGraphStateHandler
All Implemented Interfaces:
IGraphStateHandler<BaseCompoundNode,BaseCompoundEdge>

public class BaseCompoundGraphStateHandler
extends java.lang.Object
implements IGraphStateHandler<BaseCompoundNode,BaseCompoundEdge>


Constructor Summary
BaseCompoundGraphStateHandler(ICompoundGraph<BaseCompoundNode,BaseCompoundEdge> graph)
           
 
Method Summary
 IGraphState<BaseCompoundNode,BaseCompoundEdge> createGraphState()
           
 ICompoundGraph<BaseCompoundNode,BaseCompoundEdge> getGraph()
           
 void restoreState(IGraphState<BaseCompoundNode,BaseCompoundEdge> previousState)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseCompoundGraphStateHandler

public BaseCompoundGraphStateHandler(ICompoundGraph<BaseCompoundNode,BaseCompoundEdge> graph)
Method Detail

getGraph

public ICompoundGraph<BaseCompoundNode,BaseCompoundEdge> getGraph()
Specified by:
getGraph in interface IGraphStateHandler<BaseCompoundNode,BaseCompoundEdge>

createGraphState

public IGraphState<BaseCompoundNode,BaseCompoundEdge> createGraphState()
Specified by:
createGraphState in interface IGraphStateHandler<BaseCompoundNode,BaseCompoundEdge>

restoreState

public void restoreState(IGraphState<BaseCompoundNode,BaseCompoundEdge> previousState)
                  throws java.lang.IllegalArgumentException
Specified by:
restoreState in interface IGraphStateHandler<BaseCompoundNode,BaseCompoundEdge>
Throws:
java.lang.IllegalArgumentException