The simulation annotations introduced in Section 18.4 are defined with literal values: UNSIGNED-NUMBER or (true | false).
Some tools actually allow to use parameters to specify those values, similarly to what is possible with the GUI annotations defined in Section 18.7. For example, running
model M
parameter Boolean hide = true;
Real x = sin(time) annotation(HideResult = hide);
end M;
in Dymola doesn't show x in the results browser. However, this behaviour seems not to be according to the standard.
Q1: Is there any design rationale behind the fact that annotations in 18.4 can only have literal values, while annotations in 18.7 can also have expression values?
Q2: should we allow expressions in the simulation annotations in MLS 3.7, or rather deprecate their use in existing tools?
The simulation annotations introduced in Section 18.4 are defined with literal values:
UNSIGNED-NUMBERor(true | false).Some tools actually allow to use parameters to specify those values, similarly to what is possible with the GUI annotations defined in Section 18.7. For example, running
in Dymola doesn't show
xin the results browser. However, this behaviour seems not to be according to the standard.Q1: Is there any design rationale behind the fact that annotations in 18.4 can only have literal values, while annotations in 18.7 can also have expression values?
Q2: should we allow expressions in the simulation annotations in MLS 3.7, or rather deprecate their use in existing tools?