SimulationServiceIfc

This simulation service will execute evaluation requests on models and collect the desired responses.

Inheritors

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard

The model descriptors associated with the models served by the service.

Link copied to clipboard
abstract fun runSimulation(modelInputs: ModelInputs): Result<SimulationRun>

Executes a single simulation run based on the given model input. The simulation will be based on an independent execution of the simulation model. There will be no caching or common random numbers used. If the simulation results in an error, an exception is returned with the error details as part of the Result instance.

Link copied to clipboard

Executes multiple simulation runs based on the provided list of model input data. Each request is processed individually, and the result is recorded and returned as a map where the key is the request and the value is the result of the simulation. If the input list is empty, an exception is thrown. This default implementation runs all the requests sequentially based on the order of the supplied list. The simulations are run independently with no common random numbers and no caching.

Executes multiple simulations based on the provided evaluation request and maps each request to a corresponding SimulationRun. Each request is processed individually, and the results of the simulations are stored as a key-value pair in the returned map. This default implementation runs all the requests sequentially based on the order within the evaluation request.

Link copied to clipboard

Executes a single simulation run based on the given model input. The simulation will be based on an independent execution of the simulation model. There will be no caching or common random numbers used. If the simulation results in an error, an exception is returned with the error details as part of the Result instance. This functionality is essentially the same as the function, runSimulation(), except that the result wraps a ResponseMap rather than a SimulationRun.