java.lang.Object | ||
↳ | uk.ac.imperial.presage2.core.environment.EnvironmentService | |
↳ | uk.ac.imperial.presage2.util.environment.CommunicationRangeService |
An EnvironmentService
to retrieve agents' communication ranges.
Agents which have communication range to share (implementing HasCommunicationRange
)
can create shared state when registering with the environment with #createSharedState(UUID, HasCommunicationRange):
ParticipantSharedState<Double> ss = CommunicationRangeService.createSharedState(myid, commRange);
In the environment we add this as a global environment service.
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
uk.ac.imperial.presage2.core.environment.EnvironmentService
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create the shared state required for this service.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
uk.ac.imperial.presage2.core.environment.EnvironmentService
| |||||||||||
From class
java.lang.Object
|
Create the shared state required for this service.
pid | UUID of the participant to create shared state for. |
---|---|
range | initial communication range value for this participant |
ParticipantSharedState
on the type that this service uses.