|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface implemented by propagation algorithms supported by the CspSolver. Such algorithms do not use a tree search but work only with the variables, constraints and domains--generally with the goal of domain reduction. Current implementations are all arc-consistency algorithms.
Method Summary | |
void |
addConstraint(CspConstraint constraint)
Adds a constraint to be managed by this algorithm |
void |
addVariable(CspVariable var)
Adds a variable to be managed by this algorithm. |
CspVariableFactory |
getVarFactory()
Returns the variable factory for this algorithm |
void |
propagate()
Propagates constraints added to algorithm reducing domains of variables to which constraints are applied. |
Method Detail |
public void addVariable(CspVariable var)
var
- the variable to be added to and managed by the algorithmpublic void addConstraint(CspConstraint constraint)
constraint
- constraint that is to be added to and managed by the algorithmpublic void propagate() throws PropagationFailureException
PropagationFailureException
- If unable to successfully propagate constraintspublic CspVariableFactory getVarFactory()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |