Enum Class ResponseType
- All Implemented Interfaces:
Serializable,Comparable<ResponseType>,Constable
Enum representing the different types of responses returned by the coordinator
to worker threads during synchronised simulation execution.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionResponse to a request for accessing a specific agent from another thread.Signals that all workers have completed their current tick and may proceed to the next step.Signals that all workers have finished updating the coordinator with their agent data, allowing coordinated state changes to proceed.Response containing the current state of environment attributes.Response containing a filtered set of agents based on a predicate. -
Method Summary
Modifier and TypeMethodDescriptionstatic ResponseTypeReturns the enum constant of this class with the specified name.static ResponseType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ALL_WORKERS_FINISH_TICK
Signals that all workers have completed their current tick and may proceed to the next step. -
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
Response to a request for accessing a specific agent from another thread. -
FILTERED_AGENTS_ACCESS
Response containing a filtered set of agents based on a predicate. -
ENVIRONMENT_ATTRIBUTES_ACCESS
Response containing the current state of environment attributes.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-