ClientState

data class ClientState(val renderMode: RenderMode = RenderMode.AUTO, val playButton: Action = Action.PAUSE, val bitmap: ERROR CLASS: Symbol not found for Bitmap?? = 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

renderMode

the render mode of the client. It can be either client, server or auto. It is set to auto by default.

playButton

the state of the play button.

bitmap

the bitmap to display.

statusSurrogate

the StatusSurrogate of the simulation.

See also

Constructors

Link copied to clipboard
constructor(renderMode: RenderMode = RenderMode.AUTO, playButton: Action = Action.PAUSE, bitmap: ERROR CLASS: Symbol not found for Bitmap?? = null, statusSurrogate: StatusSurrogate = StatusSurrogate.INIT)

Properties

Link copied to clipboard
val bitmap: ERROR CLASS: Symbol not found for Bitmap??
Link copied to clipboard
Link copied to clipboard
val renderer: Renderer<Any, PositionSurrogate, ERROR CLASS: Symbol not found for Bitmap>
Link copied to clipboard
Link copied to clipboard