RVParameterData

@Serializable
data class RVParameterData(val clazzName: String, val elementId: Int, val dataType: String, val rvName: String, val paramName: String, val paramValue: Double, val parentElementName: String? = null, val parentElementId: Int? = null, val parentElementType: String? = null, val elementPath: List<String> = emptyList())(source)

A data transfer class holding the information about a random variable's parameters. Used primarily to store the data within the KSL database.

The trailing parentElement* fields and elementPath surface the random variable's location in the model element tree, parallel to the hierarchy fields on ksl.controls.ControlData. GUI consumers (e.g. an RV-overrides panel) can render an Owner column and group by parent without re-walking the model graph. Populated by RVParameterSetter.extractParameters; all four default so older snapshots predating the fields still deserialize cleanly.

Constructors

Link copied to clipboard
constructor(clazzName: String, elementId: Int, dataType: String, rvName: String, paramName: String, paramValue: Double, parentElementName: String? = null, parentElementId: Int? = null, parentElementType: String? = null, elementPath: List<String> = emptyList())

Properties

Link copied to clipboard

runtime class name of the parameterized random variable (e.g. "ExponentialRV").

Link copied to clipboard

"DOUBLE" or "INTEGER" — the expected type of paramValue when the parameter is set back.

Link copied to clipboard

id of the random variable itself (RandomVariable.id, not the owner's id).

Link copied to clipboard

ancestor names from the model root down to (but not including) the owning element, also excluding the Model itself. Empty when the owner is a direct child of the Model.

Link copied to clipboard

parameter key on the parameterized RV (e.g. "mean").

Link copied to clipboard

current parameter value at snapshot time.

Link copied to clipboard

id of the owning model element.

Link copied to clipboard

name of the model element that owns the random variable (its parent). null only if the RV's parent could not be resolved (the Model itself is reported as the parent for top-level RVs, mirroring the controls convention).

Link copied to clipboard

simple class name of the owning model element.

Link copied to clipboard

the random variable's name as registered in the model.