Boundary

trait Boundary

Interface that define the base boundary. All the boundaries need to extend this trait in order to be compatible. All the data will be sent to the boundaries in the same way (ECB pattern).

class Object
trait Matchable
class Any

Value members

Abstract 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

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

def init(): Task[Unit]

Initialize the boundary.

Initialize the boundary.

Returns:

the task

def start(): Task[Unit]

Start the simulation display.

Start the simulation display.

Returns:

the task

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