uk.ed.inf.graph.state
Interface IRestorableGraph<N extends IBasicNode<N,? extends IBasicEdge<N,?>>,E extends IBasicEdge<N,E>>

All Known Implementing Classes:
ArchetypalCompoundGraph, BaseCompoundGraph, CompoundGraph, Graph

public interface IRestorableGraph<N extends IBasicNode<N,? extends IBasicEdge<N,?>>,E extends IBasicEdge<N,E>>


Method Summary
 IGraphState<N,E> getCurrentState()
          Get the current state of the graph as a momento.
 void restoreState(IGraphState<N,E> previousState)
          Restores the graph state to the state stored by the previousState object.
 

Method Detail

getCurrentState

IGraphState<N,E> getCurrentState()
Get the current state of the graph as a momento.

Returns:
the current graph state, will not be null.

restoreState

void restoreState(IGraphState<N,E> previousState)
Restores the graph state to the state stored by the previousState object.

Parameters:
previousState - The previous state to be restored.