public class

EnvironmentMembersService

extends EnvironmentService
java.lang.Object
   ↳ uk.ac.imperial.presage2.core.environment.EnvironmentService
     ↳ uk.ac.imperial.presage2.util.environment.EnvironmentMembersService

Class Overview

This service provides access to the UUIDs of all the participants in the simulation. This is a low level service to allow other services to do searches on participants' shared states.

This service acts as a global environment services, and requires it's data to be initialised through #initialise(Map) and #registerParticipant(EnvironmentRegistrationRequest, Map) in order to work correctly

Usage

If you're extending AbstractEnvironment this service is already initialised in initialiseGlobalEnvironmentServices().

Summary

[Expand]
Inherited Fields
From class uk.ac.imperial.presage2.core.environment.EnvironmentService
Public Constructors
EnvironmentMembersService(EnvironmentSharedStateAccess sharedState)
Public Methods
Set<UUID> getParticipants()
Get a Set of the UUIDs of the participants in the environment.
void registerParticipant(EnvironmentRegistrationRequest req)
Called when a participant is registered (optional).
[Expand]
Inherited Methods
From class uk.ac.imperial.presage2.core.environment.EnvironmentService
From class java.lang.Object

Public Constructors

public EnvironmentMembersService (EnvironmentSharedStateAccess sharedState)

Public Methods

public Set<UUID> getParticipants ()

Get a Set of the UUIDs of the participants in the environment.

public void registerParticipant (EnvironmentRegistrationRequest req)

Called when a participant is registered (optional).