public class

SharedState

extends Object
java.lang.Object
   ↳ uk.ac.imperial.presage2.core.environment.SharedState
Known Direct Subclasses

Class Overview

General shared state in the environment.

Summary

Fields
protected final String name
protected final Serializable value
Public Constructors
SharedState(String name, Serializable value)
Public Methods
String getName()
Get the name of the type of this shared state.
Serializable getValue()
Get the value of this shared state.
[Expand]
Inherited Methods
From class java.lang.Object

Fields

protected final String name

protected final Serializable value

Public Constructors

public SharedState (String name, Serializable value)

Public Methods

public String getName ()

Get the name of the type of this shared state. This is a string identifier such that the environment can be queried for this state.

Returns
  • String identifier of this type of shared state.

public Serializable getValue ()

Get the value of this shared state.

Returns
  • Object representing this state. Type dictated by templated type.