public class FastDecisionReal extends Decision<RealVar>
Constructor and Description |
---|
FastDecisionReal(PoolManager<FastDecisionReal> poolManager) |
Modifier and Type | Method and Description |
---|---|
void |
apply()
Apply the current decision
|
void |
free()
Free the decision, ie, it can be reused
|
DecisionOperator<RealVar> |
getDecisionOperator() |
Double |
getDecisionValue()
Return the value object involves in the decision
|
void |
set(RealVar v,
double value) |
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, reverse, rewind, set, setPrevious, setWorldIndex, triesLeft
public FastDecisionReal(PoolManager<FastDecisionReal> poolManager)
public Double getDecisionValue()
Decision
getDecisionValue
in class Decision<RealVar>
public DecisionOperator<RealVar> getDecisionOperator()
getDecisionOperator
in class Decision<RealVar>
public void apply() throws ContradictionException
Decision
apply
in class Decision<RealVar>
ContradictionException
public void set(RealVar v, double value)
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.