KSLDatabase Observer
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
clear Data Before Experiment Option
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)