Simulator

fun Simulator(log: EventLog, scenario: Scenario): Simulator

Creates a simulator for the given scenario.

Return

a new Simulator instance

Parameters

log

the EventLog to record simulation events

scenario

the Scenario to simulate


fun Simulator(log: EventLog, scenario: Scenario, metricReporter: MetricReporter): Simulator

Creates a simulator for the given scenario with a metric reporter.

Return

a new Simulator instance

Parameters

log

the EventLog to record simulation events

scenario

the Scenario to simulate

metricReporter

the MetricReporter for collecting simulation metrics