ScenarioConfiguration | R Documentation |
An object storing configuration of a specific scenario
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 "Applications.xlsx"
individualId
Id of the individual as specified in "Individuals.xlsx".
If NULL
(default), the individual as defined in the simulation file will be simulated.
populationId
Id of the population as specified in "Populations.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.
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 populationsFile
. Default is
"Individual"
projectConfiguration
ProjectConfiguration
that will be used in scenarios.
Read-only
new()
Initialize a new instance of the class
ScenarioConfiguration$new(projectConfiguration)
projectConfiguration
An object of class ProjectConfiguration
.
A new ScenarioConfiguration
object.
addParamSheets()
Add the names of sheets in the parameters excel-file that will be applied to the simulation
ScenarioConfiguration$addParamSheets(sheetNames)
sheetNames
A name or a list of names of the excel sheet
removeParamSheets()
Remove the names of sheets in the parameters excel-file
from the list of sheets paramSheets
ScenarioConfiguration$removeParamSheets(sheetNames = NULL)
sheetNames
A name or a list of names of the excel sheet.
If NULL
(default), all sheets are removed
print()
Print the object to the console
ScenarioConfiguration$print(projectConfiguration = TRUE, className = TRUE)
projectConfiguration
Whether to also print project configuration. default to TRUE.
className
Whether to print the name of the class at the beginning. default to TRUE.
clone()
The objects of this class are cloneable with this method.
ScenarioConfiguration$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.