ControlBinding

@Serializable
sealed class ControlBinding(source)

How a FactorSpec's level value is applied to the model. Two variants: bind to a named model control, or bind to a single parameter of a named random variable.

Sealed so the codec emits a type discriminator + variant-specific keys. The GUI editor picks the variant via radio + dropdown.

Inheritors

Constructors

Link copied to clipboard
protected constructor()

Types

Link copied to clipboard
@Serializable
@SerialName(value = "control")
data class Control(val controlKey: String) : ControlBinding

Bind to a named model control. At run time the factor's current level value is written to the control via the model's control table (see ksl.controls.Controls).

Link copied to clipboard
@Serializable
@SerialName(value = "rvParameter")
data class RVParameter(val rvName: String, val paramName: String) : ControlBinding

Bind to a single parameter of a named random variable. At run time the factor's current level value is written to the named parameter on the RV (e.g. the 'mean' of an Exponential RV).