- 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 RootDecision
ROOT
-
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 void
apply()
Apply the current decisionvoid
free()
Free the decision, ie, it can be reusedObject
getDecisionValue()
Return the value object involves in the decisionvoid
reverse()
Reverse the decision operatorString
toString()
-
Methods inherited from class org.chocosolver.solver.search.strategy.decision.Decision
buildNext, duplicate, getArity, getDecisionVariable, getPosition, hasNext, isEquivalentTo, rewind, set, setPosition, setRefutable, triesLeft
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.chocosolver.solver.ICause
explain, forEachIntVar
-
-
-
-
Field Detail
-
ROOT
public static final RootDecision ROOT
-
-
Method Detail
-
getDecisionValue
public Object getDecisionValue()
Description copied from class:Decision
Return the value object involves in the decision- Specified by:
getDecisionValue
in classDecision
- Returns:
- a value object
-
apply
public void apply() throws ContradictionException
Description copied from class:Decision
Apply the current decision- Specified by:
apply
in classDecision
- Throws:
ContradictionException
- if the application of this decision fails
-
free
public void free()
Description copied from class:Decision
Free the decision, ie, it can be reused
-
reverse
public void reverse()
Description copied from class:Decision
Reverse the decision operator
-
-