public class SetDecision extends Decision<SetVar>
SetVarbranch, max_branching, var| Constructor and Description |
|---|
SetDecision(PoolManager<SetDecision> poolManager)
Create an decision based on an
SetVar |
| Modifier and Type | Method and Description |
|---|---|
void |
apply()
Apply the current decision
|
void |
free()
Free the decision, ie, it can be reused
|
Integer |
getDecisionValue()
Return the value object involves in the decision
|
void |
reverse()
Reverse the decision operator
|
void |
set(SetVar v,
int value,
DecisionOperator<SetVar> operator)
Instantiate this decision with the parameters
|
String |
toString() |
buildNext, duplicate, getArity, getDecisionVariable, getPosition, hasNext, isEquivalentTo, rewind, set, setPosition, setRefutable, triesLeftpublic SetDecision(PoolManager<SetDecision> poolManager)
SetVarpoolManager - decision pool manager, to recycle decisionspublic Integer getDecisionValue()
DecisiongetDecisionValue in class Decision<SetVar>public void apply()
throws ContradictionException
Decisionapply in class Decision<SetVar>ContradictionException - if the application of this decision failspublic void set(SetVar v, int value, DecisionOperator<SetVar> operator)
v - a variablevalue - a valuepublic void reverse()
Decisionpublic void free()
DecisionCopyright © 2018. All rights reserved.