Simulation Service
This simulation service will execute evaluation requests on models and collect the desired responses. This service runs the model's replications locally and sequentially in the same execution thread as the requests.
Parameters
provides the models that are registered with this provider based on their model identifiers
if supplied the cache will be used to store executed simulation runs.
Indicates whether the service 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.
Constructors
Functions
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.
Retrieves the list of input names associated with the specified model.
Retrieves a list of model identifiers provided by the service. These identifiers represent the models available for simulation runs or other operations.
Retrieves a list of response names associated with the specified model.
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.
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.
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.
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.