java.lang.Object | |
↳ | uk.ac.imperial.presage2.util.environment.AbstractEnvironment |
General implementation of an environment.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
actionHandlers | |||||||||||
authkeys | Map of participant IDs to authkeys. | ||||||||||
deferActions | |||||||||||
deferedActions | |||||||||||
globalEnvironmentServices | Global services provided by this environment's
EnvironmentServiceProvider
|
||||||||||
participantEnvironmentServices | EnvironmentService classes to instantiate and send to agents when
they register(EnvironmentRegistrationRequest) with the
environment. |
||||||||||
participantGlobalEnvironmentServices | EnvironmentService s to pass to agents on registration with the
environment. |
||||||||||
registeredParticipants | Map of Participants in the simulation | ||||||||||
sharedState |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates the Environment, initialising it ready for participants to register and act. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Perform an | |||||||||||
Deregister a participant with the environment. | |||||||||||
Return a global environment service for the given class name.
| |||||||||||
Registers a | |||||||||||
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Generate a Set of | |||||||||||
Initialise a set of
ActionHandler s which the environment will use
to process Action s. | |||||||||||
Initialise the global environment services this environment will provide.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
uk.ac.imperial.presage2.core.TimeDriven
| |||||||||||
From interface
uk.ac.imperial.presage2.core.environment.EnvironmentConnector
| |||||||||||
From interface
uk.ac.imperial.presage2.core.environment.EnvironmentServiceProvider
|
Global services provided by this environment's
EnvironmentServiceProvider
EnvironmentService
classes to instantiate and send to agents when
they register(EnvironmentRegistrationRequest)
with the
environment.
EnvironmentService
s to pass to agents on registration with the
environment. Must be available via this environment's
EnvironmentServiceProvider
.
Map of Participants in the simulation
Creates the Environment, initialising it ready for participants to register and act.
The following is initialised:
Perform an Action
on the environment.
ActionHandlingException |
---|
Deregister a participant with the environment.
Return a global environment service for the given class name.
UnavailableServiceException |
---|
Registers a Participant
with the simulation environment.
Generate a Set of EnvironmentService
s for a participant to be
sent.
Initialise a set of ActionHandler
s which the environment will use
to process Action
s.
Initialise the global environment services this environment will provide.
This services will then be provided through the
EnvironmentServiceProvider
interface.