KSLDatabase

class KSLDatabase @JvmOverloads constructor(db: Database, clearDataOption: Boolean = false) : DatabaseIOIfc(source)

Constructors

Link copied to clipboard
constructor(dbName: String, dbDirectory: Path = dbDir, clearDataOption: Boolean = true)

This constructs a SQLite database on disk and configures it to hold KSL simulation data. The database will be empty.

constructor(db: Database, clearDataOption: Boolean = false)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

If true the underlying database was configured as a KSLDatabase

Link copied to clipboard

Returns the names of the experiments in the EXPERIMENT table.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Clears all data from user defined tables

Link copied to clipboard

Deletes all simulation data associated with the supplied model. In other words, the simulation run data associated with a simulation with the name and the experiment with the name.

Link copied to clipboard

The expName should be unique within the database. Many experiments can be run with different names for the same simulation. This method deletes the experiment record with the provided name AND all related data associated with that experiment. If an experiment record does not exist with the expName, then nothing occurs.

Link copied to clipboard

Deletes by manual cascading any records related to the experiment with the provided name. If the database does not contain the specified experiment, then nothing occurs.

Link copied to clipboard

Checks if the supplied experiment name exists within the database. Experiment names should be unique within the database

Link copied to clipboard

Retrieves the data for the named experiment or null if an experiment with the provided expName name is not found in the database

Link copied to clipboard

This prepares a map that can be used with MultipleComparisonAnalyzer and returns the MultipleComparisonAnalyzer. If the set of simulation runs does not contain the provided experiment name, then an IllegalArgumentException occurs. If there are multiple simulation runs with the same experiment name, then an IllegalArgumentException occurs. In other words, when running the experiments, the user must make the experiment names unique in order for this map to be built.

Returns a map of maps. The outer map has the experiment name as its key. The inner map has the response's name as the key and the replication results as a double array. The array contains the observed replication statistic for the response variable or the final count for a counter for each replication.

Link copied to clipboard

Returns a map of maps. The outer map has the experiment name as its key. The inner map has the response's name as the key and the replication results as a list of double values. The list contains the observed replication statistic for the response variable or the final count for a counter for each replication.

Link copied to clipboard

Returns the observations for the named experiment and the named statistical response from the within replication data. If the experiment name expNameStr is not found, then an empty array is returned. If the experiment is found, but the response name statNameStr is not found, then an empty array is returned.

Link copied to clipboard

This prepares a map that can be used with MultipleComparisonAnalyzer. If the set of simulation runs does not contain the provided experiment names, then an IllegalArgumentException occurs. If there are multiple simulation runs with the same experiment name, then an IllegalArgumentException occurs. In other words, when running the experiments, the user must make the experiment names unique in order for this map to be built.

Link copied to clipboard

Returns a list containing the within replication data

Link copied to clipboard
fun withinRepViewStatistics(responseName: String): AnyFrame

Returns a data frame that has columns (exp_name, rep_id, responseName) where the values in the responseName column have the value of the response for the named experiments and the replication id (number) for the value.