SimulationProvider

constructor(modelCreator: () -> Model, simulationRunCache: SimulationRunCacheIfc? = null, useCachedSimulationRuns: Boolean = false)

Secondary constructor for the SimulationProvider class.

Parameters

modelCreator

A lambda function that creates and returns a Model instance. It provides the primary model for the simulation.

simulationRunCache

if supplied the cache will be used to store executed simulation runs.

useCachedSimulationRuns

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.