Skip to contents

Define `simulate` task and its settings

Usage

loadSimulateTask(workflow, active = TRUE, settings = NULL)

Arguments

workflow

`Workflow` object or derived class

active

logical defining if `Task` will be run by workflow. Default value is `TRUE`

settings

specific settings for `simulate` task

Value

A `SimulationTask` object

Examples

if (FALSE) { # \dontrun{

# A workflow object needs to be created first
myWorkflow <- MeanModelWorkflow$new(workflowFolder, simulationSets)

# (Re)load a default simulation task for workflow
myWorkflow$simulate <- loadSimulateTask(
  workflow = myWorkflow,
  active = TRUE
)

# Load a user-defined simulation task for workflow
myWorkflow$userDefinedTasks[["otherSimulations"]] <- loadSimulateTask(
  workflow = myWorkflow,
  active = TRUE
)
} # }