SimulationGUI

Interface that describes the user interface for the simulation.

Companion:
object
class Object
trait Matchable
class Any

Value members

Abstract methods

def events(): Observable[Event]

Obtain the observable that emits all the events of the user interface.

Obtain the observable that emits all the events of the user interface.

Returns:

the observable

def init(): Task[Unit]

Init the simulation user interface.

Init the simulation user interface.

Returns:

the task

def render(env: Environment): Task[Unit]

Render the new state of the simulation on the user interface.

Render the new state of the simulation on the user interface.

Value parameters:
env

the environment to render

Returns:

the task

def stop(): Task[Unit]

The simulation has stopped, so the gui must handle the termination.

The simulation has stopped, so the gui must handle the termination.

Returns:

the task