SingleRun

data class SingleRun(val model: Model, val attachments: List<RunAttachmentIfc> = emptyList()) : RunRequest(source)

A request to execute a single pre-built Model.

The caller is responsible for configuring the model (number of replications, replication length, controls, etc.) before passing it to Runner.submit. Runner does not retain the model after the run completes; reconfiguring and re-running typically requires rebuilding the model, as ConcurrentScenarioRunner already does.

Phase 2 will add RunConfiguration-based construction so that a model can be fully specified as a serialisable input bundle. At that point SingleRun may optionally accept a RunConfiguration as an alternative to a live Model instance.

Constructors

Link copied to clipboard
constructor(model: Model, attachments: List<RunAttachmentIfc> = emptyList())

Properties

Link copied to clipboard
open override val attachments: List<RunAttachmentIfc>

optional observers that receive lifecycle callbacks and guaranteed cleanup; see RunAttachmentIfc

Link copied to clipboard

the simulation model to execute; must be fully configured before being passed here