Simulation scenario
Active bindings
scenarioConfigurationscenarioConfigurationused for creation of this scenario. Read-only.finalCustomParamsCustom parameters to be used for the simulation. Read-only.
simulationSimulation object created from the
ScenarioConfiguration. Read-onlypopulationPopulation object in case the scenario is a population simulation. Read-only.
scenarioTypeType of the scenario - individual or population. Read-only
Methods
Method new()
Custom parameters to be used for the simulation. The final
custom parameters are a combination of parametrization through the
excel files and the custom parameters specified by the user through the
customParams argument of the Scenario constructor.
Simulation object. Read-only.
Initialize a new instance of the class. Initializes the
scenario from ScenarioConfiguration object.
Usage
Scenario$new(
scenarioConfiguration,
customParams = NULL,
stopIfParameterNotFound = TRUE
)Arguments
scenarioConfigurationAn object of class
ScenarioConfiguration.customParamsCustom parameters to be used for the simulation. A list containing vectors 'paths' with the full paths to the parameters, 'values' the values of the parameters, and 'units' with the units the values are in.
stopIfParameterNotFoundLogical. If
TRUE(default), an error is thrown if any of the custom defined parameter does not exist. IfFALSE, non-existent parameters are ignored.
Method print()
Print the object to the console
