Interface IValueChangeListener
-
- All Known Implementing Classes:
RescheduleValueChangeVisitor
public interface IValueChangeListenerIs called when theEvaluationVisitorchanges a value in the configuration.- Author:
- Holger Eichelberger
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classIValueChangeListener.ChangeKindIndicates the kind of the change.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidnotifyChanged(IDecisionVariable variable, Value oldValue, IAssignmentState oldState, IValueChangeListener.ChangeKind kind)Called if the value of a variable has been modified.voidnotifyUnresolved(IDecisionVariable variable)Called if an assignment to the givenvariablefailed as the defining expression cannot be evaluated, e.g., due to an undefined variable.
-
-
-
Method Detail
-
notifyChanged
void notifyChanged(IDecisionVariable variable, Value oldValue, IAssignmentState oldState, IValueChangeListener.ChangeKind kind)
Called if the value of a variable has been modified.- Parameters:
variable- the modified variableoldValue- the value ofvariablebefore the change (may be null)oldState- the old state of the variable before the changekind- the change kind
-
notifyUnresolved
void notifyUnresolved(IDecisionVariable variable)
Called if an assignment to the givenvariablefailed as the defining expression cannot be evaluated, e.g., due to an undefined variable.- Parameters:
variable- the variable that the evaluator was about to modify
-
-