jopt.csp.spi.solver
Interface ChoicePointAlgorithm

All Superinterfaces:
jopt.csp.variable.CspAlgorithm
All Known Implementing Classes:
ArcBasedAcAlg

public interface ChoicePointAlgorithm
extends jopt.csp.variable.CspAlgorithm

Base class for Generic Arc Consistency algorithms that use a node or arc queue for propagation


Method Summary
 java.lang.Object getProblemState()
          Returns the current state of the problem
 void restoreProblemState(java.lang.Object state)
          Restores the current state of the problem
 void setChoicePointStack(ChoicePointStack cps)
          Sets the choicepoint stack associated with this algorithm.
 
Methods inherited from interface jopt.csp.variable.CspAlgorithm
addConstraint, addVariable, getVarFactory, propagate
 

Method Detail

setChoicePointStack

public void setChoicePointStack(ChoicePointStack cps)
Sets the choicepoint stack associated with this algorithm. Can only be set once


getProblemState

public java.lang.Object getProblemState()
Returns the current state of the problem


restoreProblemState

public void restoreProblemState(java.lang.Object state)
Restores the current state of the problem