changeParameter

fun changeParameter(rvName: String, paramName: String, value: Double): Boolean

A convenience method to change the named parameter of the named random variable to the supplied value. This will work with either double or integer parameters. Integer parameters are coerced to the rounded up value of the supplied double, provided that the integer can hold the supplied value. If the named random variable is not in the setter, then no value will change. If the named parameter is not associated with the random variable type, then no change occurs. In other words, the action fails, silently by returning false.

Return

true if the value was changed, false if no change occurred

Parameters

rvName

the name of the random variable to change, must not be null

paramName

the parameter name of the random variable, must not be null

value

the value to change to