simulate

fun simulate(scenarios: IntProgression = myScenarios.indices, clearAllData: Boolean = true)

Interprets the integer progression as the indices of the contained scenarios that should be simulated. If the progression is not a valid index then no scenario is simulated.

Parameters

scenarios

The indices of the scenarios to execute. By default, all scenarios.

clearAllData

indicates if all data will be removed from the associated KSLDatabase prior to executing the scenarios. The default is true. All data is cleared. This assumes that the basic use case is to re-run the scenarios. If false is specified, then special care is needed to ensure that no execution of any scenario has the same experiment name. If the user doesn't change any scenario experiment names, then re-running will result in an error to prevent unplanned loss of data.