ServerState

data class ServerState(val simulation: Simulation<Any, Nothing>? = null, val environmentSurrogate: EnvironmentSurrogate<Any, PositionSurrogate> = EnvironmentSurrogate.uninitializedEnvironment()) : CommonState

The state of the server. The ServerState is managed using the Core concepts of the ReduxKotlin library. Like in the original Redux library the state is stored in a single class that contains other objects via composition. The state can be changed using actions that must be defined in advance. The unique store that encapsulate the ServerState is {@link it.unibo.alchemist.server.state.ServerStore}.

Parameters

simulation

the simulation. Defaults to null.

environmentSurrogate

the current environment surrogate. Defaults to an uninitializedEnvironment.

See also

Constructors

Link copied to clipboard
constructor(simulation: Simulation<Any, Nothing>? = null, environmentSurrogate: EnvironmentSurrogate<Any, PositionSurrogate> = EnvironmentSurrogate.uninitializedEnvironment())

Properties

Link copied to clipboard
Link copied to clipboard