RequestData

@Serializable
data class RequestData(val modelIdentifier: String, var numReplications: Int, val inputs: Map<String, Double> = emptyMap(), val responseNames: Set<String> = emptySet(), val experimentRunParameters: ExperimentRunParameters? = null, val modelConfiguration: Map<String, String>? = null, val requestTime: Instant = Clock.System.now())

The data associated with a request for a simulation evaluation.

Parameters

modelIdentifier

the model identifier associated with the simulation model that will be executed

numReplications

the number of replications to run the model. Must be greater than 0. This value will override a specification for the number of replications supplied by any experimental run parameters.

inputs

The input variable and its value for parameterizing the run of the simulation. If empty, the current values for the inputs will be used for the simulation.

responseNames

the names of the response variables requested from the simulation results. If no response names are provided, then all responses from the simulation will be returned. The default is all responses from the model.

experimentRunParameters

an optional set of simulation run parameters for application to the model. If not supplied, then the model's current (default) settings will be used.

requestTime

the instant that the request was constructed

Constructors

Link copied to clipboard
constructor(modelIdentifier: String, numReplications: Int, inputs: Map<String, Double> = emptyMap(), responseNames: Set<String> = emptySet(), experimentRunParameters: ExperimentRunParameters? = null, modelConfiguration: Map<String, String>? = null, requestTime: Instant = Clock.System.now())

Properties

Link copied to clipboard
Link copied to clipboard

The values of the input parameters as an array. The order of the array is based on the order of the input variables in the map of input variables.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val requestTime: Instant
Link copied to clipboard
Link copied to clipboard

Since requests may cover portions of an experiment that has multiple replication, the starting replication number may be some number between 1 and the total number of replications in the experiment. The chunking process may set the starting replication number to the starting replication of the chunk of replications.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Equals is based on modelIdentifier, inputs, and response names all being the same.

Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
fun maxOfReplication(numReps: Int)

Sets the number of requested replications to the maximum of the supplied numReps or the current setting for the number of requested replications.