RVParameterOverride

@Serializable
data class RVParameterOverride(val rvName: String, val paramName: String, val value: Double)(source)

A human-authored override for a single random-variable parameter.

Unlike ksl.utilities.random.rvariable.parameters.RVParameterData — which is a full database-style DTO carrying runtime-derived metadata (clazzName, elementId, dataType) that a config-file author cannot know — this type holds only the three fields that need to be specified to override an RV's parameter.

RunConfiguration.buildModel groups a list of overrides by rvName and applies them via ksl.utilities.random.rvariable.parameters.RVParameterSetter.changeParameters, which accepts the Map<rvName, Map<paramName, value>> form that ksl.simulation.ModelDescriptor.rvParameterMap also produces.

Example (TOML)

[[rvOverrides]]
rvName = "MM1:ServiceTime"
paramName = "mean"
value = 2.0

Constructors

Link copied to clipboard
constructor(rvName: String, paramName: String, value: Double)

Properties

Link copied to clipboard
Link copied to clipboard

name of the ksl.modeling.variable.RandomVariable as registered in the model

Link copied to clipboard

new parameter value