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 Component Parameter Edition dialog box.

Important: Components cannot be propagated.


Before you begin:
  1. From the Component Browser or from the diagram, select the relevant component.
  2. Select Edit Component Parameters from the Balloon contextual toolbar or from the contextual menu.
Related Topics
Editing Component Parameters
  1. Right-click the parameter input field representing the replaceable class you want to propagate.

    A contextual menu appears.

  2. Select Propagate Parameter.

    A Short Class declaration dialog box is displayed.

  3. If a class should be used, it can be selected from the Package Browser.

    1. Click on the Select a class input field.
    2. Browse in the Package Browser and select the class you intend to use.

      The name of the class and the path to it (in brackets) is inserted in the input field.

    3. Optional: You can remove your selection by using the Remove button.

    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 drop-down list.

  5. Constraints can be defined using the constrainedby input field. The handling here is analog with the steps 3-5 above.

  6. Enter a suitable name in the name input field (containing "Wheel" in the example above).

  7. Optional: Enter a suitable description.

  8. Click OK.

The replaceable class is now propagated to the surrounding class.