ConfigBoundary

trait ConfigBoundary extends Boundary

ConfigBoundary is a special type of Boundary dedicated to the start of the visual part of the simulator. This allow to upload the configuration and start the simulation. So it's a special boundary, that is different respect to the other ones.

trait Boundary
class Object
trait Matchable
class Any

Value members

Abstract methods

def config(): Task[FilePath]

This method allow the caller to obtain the path of the configuration file for the simulation.

This method allow the caller to obtain the path of the configuration file for the simulation.

Returns:

the task

def error(errors: Seq[ConfigurationError]): Task[Unit]

This method allow the caller to report configuration errors to the boundary.

This method allow the caller to report configuration errors to the boundary.

Value parameters:
errors

the errors in the configuration

Returns:

the task

Inherited methods

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

Consume the current state of the simulation.

Consume the current state of the simulation.

Value parameters:
env

the current environment

Returns:

the task

Inherited from:
Boundary
def events(): Observable[Event]

Every boundary can produce events and the control part of the architecture may be interested in.

Every boundary can produce events and the control part of the architecture may be interested in.

Returns:

the observable that emit events for the boundary

Inherited from:
Boundary
def init(): Task[Unit]

Initialize the boundary.

Initialize the boundary.

Returns:

the task

Inherited from:
Boundary
def start(): Task[Unit]

Start the simulation display.

Start the simulation display.

Returns:

the task

Inherited from:
Boundary
def stop(): Task[Unit]

Method to signal to the boundary that the simulation is terminated.

Method to signal to the boundary that the simulation is terminated.

Returns:

the task

Inherited from:
Boundary