Interface IValueChangeListener
public interface IValueChangeListener
Is called when the
EvaluationVisitor changes a value in the configuration.- Author:
- Holger Eichelberger
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumIndicates the kind of the change. -
Method Summary
Modifier and TypeMethodDescriptionvoidnotifyChanged(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 Details
-
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
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
-