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
abstract fun experimentalParameters(modelIdentifier: String): ExperimentRunParameters

Retrieves the experimental run parameters for the model identified by the given identifier. This method extracts detailed configurations and settings required to execute the experiment.

Link copied to clipboard
abstract fun inputNames(modelIdentifier: String): List<String>

Retrieves the list of input names associated with the specified model.

Link copied to clipboard
abstract fun isModelProvided(modelIdentifier: String): Boolean
Link copied to clipboard
abstract fun providedModels(): List<String>

Retrieves a list of model identifiers provided by the service. These identifiers represent the models available for simulation runs or other operations.

Link copied to clipboard
abstract fun responseNames(modelIdentifier: String): List<String>

Retrieves a list of response names associated with the specified model.

Link copied to clipboard

Executes a simulation run based on the given request data. This method retrieves simulation results from the cache if available, or executes the simulation using the provided model. If the simulation completes successfully, the result is cached for future requests. If the simulation results in an error, an exception is returned with the error details.

Link copied to clipboard

Executes multiple simulation runs based on the provided list of request 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 of requests is empty, an exception is thrown. This default implementation runs all the requests sequentially based on the order of the supplied list.

Link copied to clipboard

Executes multiple simulations based on the provided list of request data and maps each request to a corresponding ResponseMap. Each request is processed individually, and the results of the simulations are stored as a key-value pair in the returned map. 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.

Link copied to clipboard

Executes a simulation based on the provided request data and maps the results into a ResponseMap. If the simulation runs successfully, the request is associated with the ResponseMap in the returned map. In case of a failure during the simulation, an error is returned instead.