runSimulation
fun runSimulation(scenario: Scenario, duration: Duration, logger: EventLog = EventLog.noop(), iconProvider: IconProvider = IconProvider.defaultProvider())
Runs a single simulation for a specified duration and displays the results.
The simulation is executed until the specified duration of simulation time has elapsed, then the final state is displayed with a static visualization.
Parameters
scenario
the Scenario to simulate
duration
the simulation time to run for
logger
the EventLog for recording simulation events (default: no-op)
iconProvider
the IconProvider for custom node icons (default: default provider)
fun runSimulation(scenario: Scenario, events: Int, logger: EventLog = EventLog.noop(), iconProvider: IconProvider = IconProvider.defaultProvider())
Runs a single simulation for a specified number of events and displays the results.
The simulation is executed until the specified number of events have been processed, then the final state is displayed with a static visualization.