SimulationRef

An abstract reference to simulation logic.

Includes the basic interface that we expect from a simulation case:

  1. Starting the simulation.
  2. Notifying when tasks complete.
  3. Stopping/aborting the simulation.
class Object
trait Matchable
class Any

Value members

Abstract methods

def completed(time: Long, tasks: Seq[TaskInstance]): Unit

Notifies the simulation that some of its tasks completed.

Notifies the simulation that some of its tasks completed.

Value Params
tasks

The TaskInstances that completed.

time

The current virtual timestamp.

def name: String

A unique name for the simulation.

A unique name for the simulation.

Returns

The name of the SimulationRef.

def run(): Unit

Starts the simulation.

Starts the simulation.

def stop(): Unit

Stops/aborts the simuation.

Stops/aborts the simuation.