RunSummary

data class RunSummary(val runId: String, val modelIdentifier: String, val experimentName: String, val requestedReplications: Int, val completedReplications: Int, val endingStatus: IterativeProcessIfc.EndingStatus, val beginTime: Instant, val endTime: Instant)(source)

Lightweight in-memory summary of a completed (or terminated) simulation run.

RunSummary is a summary, not a results container. Per-replication observations and across-replication statistics live in whatever output sinks the user configured on the model (database, CSV files, in-memory responses, etc.) and are accessed through the normal KSL APIs after the run completes.

An instance is attached to the terminal RunEvent (RunEvent.RunCompleted) and is also available via RunResult.Completed.

Constructors

Link copied to clipboard
constructor(runId: String, modelIdentifier: String, experimentName: String, requestedReplications: Int, completedReplications: Int, endingStatus: IterativeProcessIfc.EndingStatus, beginTime: Instant, endTime: Instant)

Properties

Link copied to clipboard
val beginTime: Instant

wall-clock instant at which Runner called model.initializeReplications()

Link copied to clipboard

how many replications actually finished; may be less than requestedReplications on cancellation or if the execution-time limit was reached

Link copied to clipboard

the IterativeProcessIfc.EndingStatus value that describes why the replication loop terminated; derived from the model's public status properties after the loop exits

Link copied to clipboard
val endTime: Instant

wall-clock instant at which the run finished; set by model.endSimulation() on the normal path, or by Runner on the cancellation and error paths

Link copied to clipboard

the experiment name from the model at run time

Link copied to clipboard

the ksl.simulation.Model.modelIdentifier of the model that was executed

Link copied to clipboard

the number of replications that were requested (model.numberOfReplications)

Link copied to clipboard

globally unique identifier assigned by Runner when the run is submitted; useful for correlating log entries and database rows

Link copied to clipboard

Elapsed wall-clock time for the entire run.