jopt.csp.spi.util
Interface Storable

All Known Subinterfaces:
Node, NumNode, SetNode, Variable
All Known Implementing Classes:
AbstractNode, BooleanVariable, DoubleNode, DoubleVariable, FloatNode, FloatVariable, IntNode, IntSetNode, IntSetVariable, IntVariable, LongNode, LongVariable, SetVariableBase

public interface Storable

This interface should be implemented by variables that are capable of storing state information to an object and then restoring their state from that object at a later point in time. This state information is domain information.

Author:
Chris Johnson

Method Summary
 java.lang.String getName()
          Returns a string that can later be used to reference the stored data a later point
 java.lang.Object getState()
          Stores appropriate data for future restoration.
 void restoreState(java.lang.Object state)
          Restores variable information from stored data.
 

Method Detail

getName

public java.lang.String getName()
Returns a string that can later be used to reference the stored data a later point


getState

public java.lang.Object getState()
Stores appropriate data for future restoration.


restoreState

public void restoreState(java.lang.Object state)
Restores variable information from stored data.