KSLDatabaseObserver

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

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.