Propagating a Replaceable Class

You can propagate a replaceable class, to conveniently enable using it on a higher level. A new replaceable class is created in the active class, and is redeclared in the corresponding entry of the Modelica Parameter Edition dialog box.

Important: Components cannot be propagated.

See Also
Displaying and Editing Modelica Parameters
  1. From the Component Browser or from the diagram, right-click the relevant component and select Edit Modelica Parameters .

    Tip: From the diagram, from the context toolbar, you can also select Edit Modelica Parameters .

    The dialog box for editing the component Modelica parameters appears to let you edit the component Modelica parameters and some other modifiers.
  2. Click the small triangle after the box of the parameter representing the replaceable class you want to propagate, and select Propagate.
    A Short Class declaration dialog box is displayed.
  3. If a class not being a basic type should be used, do the following:
    1. Click on the Select a class box.
    2. You can select the class in a number of ways, including searching for it; see Using the Class Selector Field.
      The name of the class and the path to it (in brackets) is inserted in the box.
    3. Optional: To remove your selection, click Remove.

    Important: Note that the selected class does not appear as a default selection.

  4. If a basic type should be used:
    1. Click on Switch between class and basic type selection .
      The icon is changed.
    2. Select a type from the list.
  5. Constraints can be defined using the constrainedby box. The handling here is analog with the steps 3-5 above.
  6. Enter a suitable name in the name box.
  7. Optional: Enter a suitable description.
  8. Click OK.

The replaceable class is now propagated to the surrounding class.