Client State
data class ClientState(val renderMode: RenderMode = RenderMode.AUTO, val playButton: Action = Action.PAUSE, val bitmap: <Error class: unknown class>? = null, val statusSurrogate: StatusSurrogate = StatusSurrogate.INIT) : CommonState
The state of the client. The ClientState 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 ClientState is it.unibo.alchemist.boundary.webui.client.state.ClientStore.
Parameters
render Mode
the render mode of the client. It can be either client, server or auto. It is set to auto by default.
play Button
the state of the play button.
bitmap
the bitmap to display.
status Surrogate
the StatusSurrogate of the simulation.
See also
Constructors
Link copied to clipboard
constructor(renderMode: RenderMode = RenderMode.AUTO, playButton: Action = Action.PAUSE, bitmap: <Error class: unknown class>? = null, statusSurrogate: StatusSurrogate = StatusSurrogate.INIT)