Class RootDecision
- java.lang.Object
-
- org.chocosolver.solver.search.strategy.decision.Decision
-
- org.chocosolver.solver.search.strategy.decision.RootDecision
-
- All Implemented Interfaces:
Serializable,ICause
public class RootDecision extends Decision
- Since:
- 01/06/12
- Author:
- Charles Prud'homme
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static RootDecisionROOT-
Fields inherited from class org.chocosolver.solver.search.strategy.decision.Decision
branch, max_branching, var
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapply()Apply the current decisionvoidfree()Free the decision, ie, it can be reusedObjectgetDecisionValue()Return the value object involves in the decisionvoidreverse()Reverse the decision operatorStringtoString()-
Methods inherited from class org.chocosolver.solver.search.strategy.decision.Decision
buildNext, duplicate, getArity, getDecisionVariable, getPosition, hasNext, isEquivalentTo, rewind, set, setPosition, setRefutable, triesLeft
-
-
-
-
Field Detail
-
ROOT
public static final RootDecision ROOT
-
-
Method Detail
-
getDecisionValue
public Object getDecisionValue()
Description copied from class:DecisionReturn the value object involves in the decision- Specified by:
getDecisionValuein classDecision- Returns:
- a value object
-
apply
public void apply() throws ContradictionExceptionDescription copied from class:DecisionApply the current decision- Specified by:
applyin classDecision- Throws:
ContradictionException- if the application of this decision fails
-
free
public void free()
Description copied from class:DecisionFree the decision, ie, it can be reused
-
reverse
public void reverse()
Description copied from class:DecisionReverse the decision operator
-
-