Interface VariableValueCopier.IAssignmentListener

Enclosing class:
VariableValueCopier

public static interface VariableValueCopier.IAssignmentListener
Optional listener interface to generically track primary value assignments.
Author:
Holger Eichelberger
  • Method Details

    • notifyAssigned

      void notifyAssigned(IDecisionVariable target, Value value, boolean added)
      Notifies about assigned values.
      Parameters:
      target - the target variable
      value - the new value
      added - whether value is being added to a collection or set as the single absolute value
    • notifyCreated

      void notifyCreated(IDecisionVariable origin, IDecisionVariable target)
      Notifies the listener about a new variable created for a given origin variable. A notifyAssigned(IDecisionVariable, Value, boolean) shall follow.
      Parameters:
      origin - the origin variable
      target - the new variable