Enum Class ResponseType

java.lang.Object
java.lang.Enum<ResponseType>
modelarium.multithreading.requestresponse.ResponseType
All Implemented Interfaces:
Serializable, Comparable<ResponseType>, Constable

public enum ResponseType extends Enum<ResponseType>
Enum representing the different types of responses returned by the coordinator to worker threads during synchronised simulation execution.
  • Enum Constant Details

    • ALL_WORKERS_FINISH_TICK

      public static final ResponseType ALL_WORKERS_FINISH_TICK
      Signals that all workers have completed their current tick and may proceed to the next step.
    • ALL_WORKERS_UPDATE_COORDINATOR

      public static final ResponseType ALL_WORKERS_UPDATE_COORDINATOR
      Signals that all workers have finished updating the coordinator with their agent data, allowing coordinated state changes to proceed.
    • AGENT_ACCESS

      public static final ResponseType AGENT_ACCESS
      Response to a request for accessing a specific agent from another thread.
    • FILTERED_AGENTS_ACCESS

      public static final ResponseType FILTERED_AGENTS_ACCESS
      Response containing a filtered set of agents based on a predicate.
    • ENVIRONMENT_ATTRIBUTES_ACCESS

      public static final ResponseType ENVIRONMENT_ATTRIBUTES_ACCESS
      Response containing the current state of environment attributes.
  • Method Details

    • values

      public static ResponseType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ResponseType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null