BaseLauncher

io.github.srs.BaseLauncher

Base trait for launching the Scala Robotics Simulator application.

It sets up the Model-View-Controller (MVC) architecture and provides a method to run the simulation.

The specific view implementation (GUI or CLI) is provided by the extending objects.

Attributes

Graph
Supertypes
Known subtypes
object CLILauncher
object GUILauncher

Members list

Type members

Inherited classlikes

object Controller

Attributes

Inherited from:
Component
Supertypes
class Object
trait Matchable
class Any
object Model

Attributes

Inherited from:
Component
Supertypes
class Object
trait Matchable
class Any
object View

Factory method to create a new instance of the view.

Factory method to create a new instance of the view.

Attributes

Inherited from:
Component
Supertypes
class Object
trait Matchable
class Any

Value members

Concrete methods

Runs the MVC components with the given initial simulation state.

Runs the MVC components with the given initial simulation state.

Value parameters

state

the initial state of the simulation.

Attributes

Returns

an IO effect that runs the simulation.

Inherited and Abstract methods

protected def makeView(): View[SimulationState]

Creates a new instance of the view.

Creates a new instance of the view.

Attributes

Returns

the newly created view instance.

Inherited from:
Component

Abstract fields