uk.ac.imperial.presage2.core.environment.EnvironmentSharedStateAccess |
Known Indirect Subclasses |
This is the access layer to the shared state of the environment.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Change a shared state value for a given agent to a given value. | |||||||||||
Modify a shared state value for a given agent. | |||||||||||
Change a global shared state value to a given new value, Value will not be changed until the next time slice. | |||||||||||
Modify a global shared state value. | |||||||||||
Create a shared state value for a given agent. | |||||||||||
Create a shared state value for a given agent. | |||||||||||
Create a value in the global shared state. | |||||||||||
Create a value in the global shared state. | |||||||||||
Delete a shared state value for a given agent. | |||||||||||
Delete a value in the global shared state. | |||||||||||
Get a shared state value for an individual agent.
| |||||||||||
Get a global shared state value.
|
Change a shared state value for a given agent to a given value.
Value will not be changed until the next time slice.
name | String key of the value to change |
---|---|
participantID | UUID of the agent |
value | StateTransformer which will perform the change.
|
Modify a shared state value for a given agent.
Value will not be changed until the next time slice.
name | String key of the value to change |
---|---|
participantID | UUID of the agent |
change | StateTransformer which will perform the change.
|
Change a global shared state value to a given new value,
Value will not be changed until the next time slice.
name | String key name of the value to be changed. |
---|---|
value | New value to be set. |
Modify a global shared state value.
Value will not be changed until the next time slice.
name | String key name of the value to be changed. |
---|---|
change | StateTransformer which will perform the change.
|
Create a shared state value for a given agent.
Value will be created in the current time cycle.
name | String key of the value to change |
---|---|
participantID | UUID of the agent |
value | Initial value to set state to. |
SharedStateAccessException | if state with the same key already exists. |
---|
Create a shared state value for a given agent.
Value will be created in the current time cycle.
state | ParticipantSharedState describing the state to create. |
---|
SharedStateAccessException | if state with the same key already exists. |
---|
Create a value in the global shared state.
Value will be created in the current time cycle.
name | String key name of the value to create. |
---|---|
value | Initial value to set state to. |
SharedStateAccessException | if state with the same key already exists. |
---|
Create a value in the global shared state.
Value will be created in the current time cycle.
state | SharedState describing the state to create. |
---|
SharedStateAccessException | if state with the same key already exists. |
---|
Delete a shared state value for a given agent.
name | String key of the value to change |
---|---|
participantID | UUID of the agent |
Delete a value in the global shared state.
name | String key name of the value to create. |
---|
Get a shared state value for an individual agent.
name | String key of the value to get |
---|---|
participantID | UUID of the agent |
Get a global shared state value.
name | String key name of the value |
---|