SimulationConfig

SimulationConfig represent the configuration needed by the engine to be able to work

class Object
trait Matchable
class Any

Value members

Abstract methods

The engine speed.

The engine speed.

Returns:

the engine speed

def engineSpeed_=(speed: EngineSpeed): Unit

Setter for the engine speed. This because the speed can be modified by the user at runtime.

Setter for the engine speed. This because the speed can be modified by the user at runtime.

Value parameters:
speed

the EngineSpeed

The current EngineStatus.

The current EngineStatus.

Returns:

the status

def engineStatus_=(status: EngineStatus): Unit

Setter to change the engine status. It is useful to pause, resume and stop the simulation.

Setter to change the engine status. It is useful to pause, resume and stop the simulation.

Value parameters:
status

the EngineStatus to set

It returns a function that for each event returns the specific logic that is able to handle it.

It returns a function that for each event returns the specific logic that is able to handle it.

Returns:

the function that for an event returns the associated logic

The sequence of all the logics that need to be executed every iteration.

The sequence of all the logics that need to be executed every iteration.

Returns:

the list of logics

The engine process events that came from the boundaries at every iteration. This value represent the number of events that are processes from the queue at every tick. Consider that process an higher number of events every tick means a slower processing for each tick, but a lower value means that event may be considered after some time.

The engine process events that came from the boundaries at every iteration. This value represent the number of events that are processes from the queue at every tick. Consider that process an higher number of events every tick means a slower processing for each tick, but a lower value means that event may be considered after some time.

Returns:

the maximum number of events to consider each iteration