public class

EnvironmentRegistrationRequest

extends Object
java.lang.Object
   ↳ uk.ac.imperial.presage2.core.environment.EnvironmentRegistrationRequest

Class Overview

A request to register with the environment.

Summary

Fields
protected Participant participant We may need to the Participant in order to create some EnvironmentServices.
protected UUID participantID
protected Set<ParticipantSharedState> sharedState Set of sharedstate which we share with the environment.
Public Constructors
EnvironmentRegistrationRequest(UUID participantID, Participant participant)
Construct an EnvironmentRegistrationRequest without sharedstate.
EnvironmentRegistrationRequest(UUID participantID, Participant participant, Set<ParticipantSharedState> sharedState)
Public Methods
Participant getParticipant()
UUID getParticipantID()
Set<ParticipantSharedState> getSharedState()
void setSharedState(Set<ParticipantSharedState> sharedState)
[Expand]
Inherited Methods
From class java.lang.Object

Fields

protected Participant participant

We may need to the Participant in order to create some EnvironmentServices.

protected UUID participantID

protected Set<ParticipantSharedState> sharedState

Set of sharedstate which we share with the environment.

Public Constructors

public EnvironmentRegistrationRequest (UUID participantID, Participant participant)

Construct an EnvironmentRegistrationRequest without sharedstate.

public EnvironmentRegistrationRequest (UUID participantID, Participant participant, Set<ParticipantSharedState> sharedState)

Public Methods

public Participant getParticipant ()

Returns
  • the participant

public UUID getParticipantID ()

Returns
  • the participantID

public Set<ParticipantSharedState> getSharedState ()

Returns
  • the sharedState

public void setSharedState (Set<ParticipantSharedState> sharedState)

Parameters
sharedState the sharedState to set