Enum Class RequestType
- All Implemented Interfaces:
Serializable,Comparable<RequestType>,Constable
Enum representing the different types of requests that can be sent
between worker threads and the coordinator thread during synchronised simulation.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRequest to access a specific agent from another thread or core.Indicates that a worker has completed its tick and is ready to synchronise with other workers before continuing.Indicates that a worker has updated the coordinator with its agent state and is waiting for others to do the same.Request to retrieve the current state of the environment's attributes.Request to access a subset of agents based on a filter predicate.Request to shut the model down.Request to update the coordinator with the latest agent data from a worker thread. -
Method Summary
Modifier and TypeMethodDescriptionstatic RequestTypeReturns the enum constant of this class with the specified name.static RequestType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ALL_WORKERS_FINISH_TICK
Indicates that a worker has completed its tick and is ready to synchronise with other workers before continuing. -
ALL_WORKERS_UPDATE_COORDINATOR
Indicates that a worker has updated the coordinator with its agent state and is waiting for others to do the same. -
AGENT_ACCESS
Request to access a specific agent from another thread or core. -
FILTERED_AGENTS_ACCESS
Request to access a subset of agents based on a filter predicate. -
ENVIRONMENT_ATTRIBUTES_ACCESS
Request to retrieve the current state of the environment's attributes. -
UPDATE_COORDINATOR_AGENTS
Request to update the coordinator with the latest agent data from a worker thread. -
SHUTDOWN
Request to shut the model down.
-
-
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
-