Simulation Provider
constructor(modelCreator: () -> Model, simulationRunCache: SimulationRunCacheIfc? = null, useCachedSimulationRuns: Boolean = false)
Secondary constructor for the SimulationProvider class.
Parameters
model Creator
A lambda function that creates and returns a Model instance. It provides the primary model for the simulation.
simulation Run Cache
if supplied the cache will be used to store executed simulation runs.
use Cached Simulation Runs
Indicates whether the provider should use cached simulation runs when responding to requests. The default is false. If the simulation runs are not cached, this option has no effect.