Skip to contents

An object storing configuration of a specific scenario

Super class

ospsuite.utils::Printable -> ScenarioConfiguration

Public fields

scenarioName

Name of the simulated scenario

modelFile

Name of the simulation to be loaded (must include the extension ".pkml"). Must be located in the "modelFolder".

applicationProtocol

Name of the application protocol to be applied. Defined in the excel file "ApplicationParameters.xlsx"

individualId

Id of the individual as specified in "IndividualParameters.xlsx". If NULL (default), the individual as defined in the simulation file will be simulated.

populationId

Id of the population as specified in "PopulationParameters.xlsx", sheet "Demographics". If ScenarioConfguration$simulationType is population, a population will be created a the scenario will be simulated as a population simulation.

outputPaths

a list of output paths for which the results will be calculated. If NULL (default), outputs as defined in the simulation are used.

Active bindings

simulateSteadyState

Boolean representing whether the simulation will be brought to a steady-state first

readPopulationFromCSV

Boolean representing whether the a new population will be created (value is FALSE) or an existing population will be imported from a csv.

simulationTime

Specified simulation time intervals. If NULL (default), simulation time as defined in the Simulation object will be used. Accepted are multiple time intervals separated by a ';'. Each time interval is a triplet of values <StartTime, EndTime, Resolution>, where Resolution is the number of simulated points per time unit defined in the column TimeUnit.

simulationTimeUnit

Unit of the simulation time intervals.

steadyStateTime

Time in minutes to simulate if simulating steady-state. May be NULL.

paramSheets

Names of the sheets from the parameters-excel file that will be applied to the simulation

simulationType

Type of the simulation - "Individual" or "Population". If "Population", population characteristics are created based on information stored in populationParamsFile. Default is "Individual"

projectConfiguration

ProjectConfiguration that will be used in scenarios. Read-only

Methods


Method new()

Initialize a new instance of the class

Usage

ScenarioConfiguration$new(projectConfiguration)

Arguments

projectConfiguration

An object of class ProjectConfiguration.

Returns

A new ScenarioConfiguration object.


Method addParamSheets()

Add the names of sheets in the parameters excel-file that will be applied to the simulation

Usage

ScenarioConfiguration$addParamSheets(sheetNames)

Arguments

sheetNames

A name or a list of names of the excel sheet


Method removeParamSheets()

Remove the names of sheets in the parameters excel-file from the list of sheets paramSheets

Usage

ScenarioConfiguration$removeParamSheets(sheetNames = NULL)

Arguments

sheetNames

A name or a list of names of the excel sheet. If NULL (default), all sheets are removed


Method print()

Print the object to the console

Usage

ScenarioConfiguration$print(projectConfiguration = TRUE)

Arguments

projectConfiguration

Whether to also print project configuration. default to TRUE.


Method clone()

The objects of this class are cloneable with this method.

Usage

ScenarioConfiguration$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.