public class SetDecision extends Decision<SetVar>
SetVar
branch, 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, triesLeft
public SetDecision(PoolManager<SetDecision> poolManager)
SetVar
poolManager
- decision pool manager, to recycle decisionspublic Integer getDecisionValue()
Decision
getDecisionValue
in class Decision<SetVar>
public void apply() throws ContradictionException
Decision
apply
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()
Decision
public void free()
Decision
Copyright © 2018. All rights reserved.