public interface ICause extends Serializable
Important: when the why(org.chocosolver.solver.explanations.RuleStore, org.chocosolver.solver.variables.IntVar, org.chocosolver.solver.variables.events.IEventType, int)
method
needs to evaluate the incoming event, one may be aware that in some cases (for instance, BoolVar), the original event can promoted.
Hence, if a cause can only explain bound modifications, it should also either consider the INSTANTIATION or the strengthen mask.
Modifier and Type | Method and Description |
---|---|
boolean |
why(RuleStore ruleStore,
IntVar var,
IEventType evt,
int value)
Add new rules to the rule store
|
boolean why(RuleStore ruleStore, IntVar var, IEventType evt, int value)
ruleStore
- the rule storevar
- the modified variableevt
- the undergoing eventvalue
- the value (for REMOVE only)Copyright © 2015. All rights reserved.