public class FastDecisionSet extends Decision<SetVar>
Constructor and Description |
---|
FastDecisionSet(PoolManager<FastDecisionSet> poolManager) |
Modifier and Type | Method and Description |
---|---|
void |
apply()
Apply the current decision
|
void |
free()
Free the decision, ie, it can be reused
|
DecisionOperator<SetVar> |
getDecisionOperator() |
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) |
String |
toString() |
boolean |
why(RuleStore ruleStore,
IntVar var,
IEventType evt,
int value)
Add new rules to the rule store
|
buildNext, compareTo, duplicate, getDecisionVariable, getId, getPrevious, getWorldIndex, hasNext, once, rewind, set, setPrevious, setWorldIndex, triesLeft
public FastDecisionSet(PoolManager<FastDecisionSet> poolManager)
public Integer getDecisionValue()
Decision
getDecisionValue
in class Decision<SetVar>
public DecisionOperator<SetVar> getDecisionOperator()
getDecisionOperator
in class Decision<SetVar>
public void apply() throws ContradictionException
Decision
apply
in class Decision<SetVar>
ContradictionException
public void set(SetVar v, int value, DecisionOperator<SetVar> operator)
public void reverse()
Decision
public void free()
Decision
public boolean why(RuleStore ruleStore, IntVar var, IEventType evt, int value)
ICause
ruleStore
- the rule storevar
- the modified variableevt
- the undergoing eventvalue
- the value (for REMOVE only)Copyright © 2015. All rights reserved.