KSLDatabaseObserver

class KSLDatabaseObserver(model: Model, val db: KSLDatabase = KSLDatabase("${model.simulationName}.db".replace(" ", "_"), model.outputDirectory.dbDir), var clearDataBeforeExperimentOption: Boolean = false)

The observer is automatically attached to the model upon creation. Use startObserving() or stopObserving() as needed.

Parameters

model

the model to observe

db

the properly configured databased to hold KSL related results

clearDataBeforeExperimentOption

indicates whether data should be cleared before each experiment. The default is false. Data will not be cleared if multiple simulations of the same model are executed within the same execution frame. An error is issued if the experiment name has not changed.

Constructors

Link copied to clipboard
constructor(model: Model, db: KSLDatabase = KSLDatabase("${model.simulationName}.db".replace(" ", "_"), model.outputDirectory.dbDir), clearDataBeforeExperimentOption: Boolean = false)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Functions

Link copied to clipboard

Tells a stopped observer to start collecting simulation result data

Link copied to clipboard

Tells the observer to stop collecting simulation result data