Interface AlignmentOutcomeClosure<T>

Type Parameters:
T - A generic type representing agents.

public interface AlignmentOutcomeClosure<T>
An interface to handle event-related attributes of agents.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    getOutcome(T agent)
    A method to extract the binary outcome value from an agent.
    void
    resample(T agent)
    Attempts to resample (change) the binary outcome value of an agent.
  • Method Details

    • getOutcome

      boolean getOutcome(@NonNull T agent)
      A method to extract the binary outcome value from an agent.
      Parameters:
      agent - An agent.
      Returns:
      a boolean value, 0 or 1.
      Throws:
      NullPointerException - when agent is null.
    • resample

      void resample(@NonNull T agent)
      Attempts to resample (change) the binary outcome value of an agent.
      Parameters:
      agent - An agent.
      Throws:
      NullPointerException - when agent is null.