uk.ed.inf.graph.state
Class GraphStateHandler<N extends IRestorableGraphElement & IBasicNode<N,? extends IBasicEdge<N,?>>,E extends IRestorableGraphElement & IBasicEdge<N,E>>

java.lang.Object
  extended by uk.ed.inf.graph.state.GraphStateHandler<N,E>
All Implemented Interfaces:
IGraphStateHandler<N,E>

public class GraphStateHandler<N extends IRestorableGraphElement & IBasicNode<N,? extends IBasicEdge<N,?>>,E extends IRestorableGraphElement & IBasicEdge<N,E>>
extends java.lang.Object
implements IGraphStateHandler<N,E>


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

Constructor Detail

GraphStateHandler

public GraphStateHandler(IBasicGraph<N,E> graph)
Method Detail

getGraph

public IBasicGraph<N,E> getGraph()
Specified by:
getGraph in interface IGraphStateHandler<N extends IRestorableGraphElement & IBasicNode<N,? extends IBasicEdge<N,?>>,E extends IRestorableGraphElement & IBasicEdge<N,E>>

createGraphState

public IGraphState<N,E> createGraphState()
Specified by:
createGraphState in interface IGraphStateHandler<N extends IRestorableGraphElement & IBasicNode<N,? extends IBasicEdge<N,?>>,E extends IRestorableGraphElement & IBasicEdge<N,E>>

restoreState

public void restoreState(IGraphState<N,E> previousState)
                  throws java.lang.IllegalArgumentException
Specified by:
restoreState in interface IGraphStateHandler<N extends IRestorableGraphElement & IBasicNode<N,? extends IBasicEdge<N,?>>,E extends IRestorableGraphElement & IBasicEdge<N,E>>
Throws:
java.lang.IllegalArgumentException