WOLFRAM SYSTEM MODELER

choicesAllMatching

choicesAllMatching

Wolfram Language

In[1]:=
SystemModel["ModelicaReference.Annotations.choicesAllMatching"]
Out[1]:=

Information

This information is part of the Modelica Standard Library maintained by the Modelica Association.

Automatically display a list of matching choices in a graphical parameter menu.

Description

Choices menus of replaceable elements can be automatically constructed showing the names of all classes that are either directly or indirectly derived by inheritance from the constraining class of the declaration.

This can be recommended by having annotation choicesAllMatching = true; and disabled by having annotation choicesAllMatching = false;.

Examples

replaceable package Medium = Modelica.Media.Water.ConstantPropertyLiquidWater
                             constrainedby Modelica.Media.Interfaces.PartialMedium
                             annotation (choicesAllMatching=true);