Make `Variable`s behave as `Parameter`s
Fixes #525 (closed)
A Variable
is a ModelElement
that only contains a Parameter
. In the KatScript it can be used as if it were this Parameter
in math operations. But in the Python API or when trying to directly access other properties of the ´Parameter
one had to use .value
. This was confusing as the Parameter
also has a .value
attribute.
Instead now the Parameter
gets hidden as ._param
while all the of its functionality gets directly exposed by Variable
. This means that now a Variable
can be used in math operations like a Parameter
in both KatScript and the Python API and .value
refers to the value of the Parameter
.
Several tests needed to be changed to account for the syntax change. This will likely break some scripts.