jopt.csp.solution
Interface VariableSolution

All Superinterfaces:
java.lang.Cloneable
All Known Implementing Classes:
BooleanSolution, DoubleSolution, FloatSolution, IntSolution, LongSolution, SetSolution

public interface VariableSolution
extends java.lang.Cloneable

Interface implemented by all variable solutions


Method Summary
 java.lang.Object clone()
           
 CspVariable getVariable()
          Returns variable solution is based upon
 boolean isBound()
          Returns true if variable is bound in solution
 void restore()
          Restores (certain) recorded information to the associated variable.
 void store()
          Causes variable solution to capture certain information about it's variable and store it locally so that it can be restored later.
 

Method Detail

getVariable

public CspVariable getVariable()
Returns variable solution is based upon


isBound

public boolean isBound()
Returns true if variable is bound in solution


store

public void store()
Causes variable solution to capture certain information about it's variable and store it locally so that it can be restored later. History is not kept: calling this method overwrites any previous information captured from previous calls to this method.


restore

public void restore()
             throws PropagationFailureException
Restores (certain) recorded information to the associated variable. This is the information stored when the store() was most recently called.

Throws:
PropagationFailureException

clone

public java.lang.Object clone()