Interface EvaluationListener

All Superinterfaces:
EventListener

public interface EvaluationListener extends EventListener
The EvaluationListener interface should be implemented by classes that wish to receive notifications of evaluation results. This interface extends from EventListener, marking it as a specialized listener for handling evaluation-related events. Implementors of this interface should override the fire() method to define custom handling behavior for evaluation results.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    fire(Evaluator evaluator, IntToValue values, boolean result)
    Invoked when an evaluation event occurs.
  • Method Details

    • fire

      void fire(Evaluator evaluator, IntToValue values, boolean result)
      Invoked when an evaluation event occurs.

      This method is called to notify the listener of the result of an evaluation. Implementing classes should provide their own implementation of how to handle this event, which might include processing the evaluation result or updating the state of other components based on the evaluation.

      Parameters:
      evaluator - The Evaluator instance that performed the evaluation.
      values - The IntToValue instance associated with the evaluation. This provides a mapping or association used during the evaluation, which can be essential for understanding how the evaluation result was derived.
      result - A boolean representing the result of the evaluation.