Basic REC-RPL Use Case

Creation of a REC

From a diagram, select a consistent set of elements (here, a Component and the Functions it is performing).

From the contextual menu, select “Create a REC from Selection”

The REC creation dialog appears. A name shall be given to the REC. The Catalog field allows to select in which catalog this REC should be created (when working with Libraries, the Catalog is most likely located in a Library).

The scope (content) of the REC is displayed. This dialog helps modifying this scope (for example adding or removing elements). By default, the tool applies a set of business rules to include elements (for example, allocations between Component and Functions, children of an element, Etc.). Note here that despite Functional Exchange “fe23” is carrying Exchange Items, these Exchange Items are not included by default in the REC. In most of the cases, they shoud not be, as references are kept.

It is possible at this stage to define which elements will have to be renamed when the REC will be instantiated (label [+SUFFIX]). By default, the root elements (elements with no included container) are set as having to be renamed.

Set/Unset the Element as having to be renamed at Instantiation

Include Selected Element

Remove Element

Generic Include Elements

Include Related Elements

Include Children Elements

Include Required Dependencies of Selected Element

Include All Requirement Dependencies

The compliancy field allows defining how REC would be instantiated (is it possible to modify content of the replica? add external interfaces? add ports? add more functions?)
See the RPL Validation part for further description of any kind of compliancy' (This feature is not fully available yet)'

Notice the message at the bottom of the dialog, selected elements are linked to some elements which are not included in the REC (many exchange items, visible by clicking on the browse button on the right). When the REC will be instanciated, elements of the newly RPL will be linked to these exchange items too.

Close the dialog and check the result.

In the Project Explorer, the newly created REC appears. The Semantic Browser also show REC-related information

And from the Function F2 included in the REC,

Instantiation of a REC

From anywhere in the model, use the contextual command “Instantiate a RPL from a REC”

The instantiation dialog opens.

This dialog allows

All RPL elements corresponding to a REC element with the suffix tag [+SUFFIX] will have the RPL suffix.

By default, all RPL elements (new elements) will be located in standard containers in the model (for example, Root Functions, Root Components, etc.). It is possible to desactivate this option. In that case, a specific location has to be found manually for the root elements of the RPL. The elements for which a location still has to be found are marked in Orange. The definition of a new location is performed using drag and drop between the two trees.

It is possible to create on-the-fly new elements in the right tree, using the contextual menu and rename them by pressing F2.

Close the dialog.

The new RPL can be seen in the Project Explorer. The type of the RPL is displayed in brackets.

A good practice is to manage REC and RPLs in different folders

On a diagram, insert the newly created elements (here, the Component and its Functions).

The Semantic Browser display RPL- and REC-related information:

The Semantic Browser also shows the Functional Exchange “fe2”, part of the RPL, is also carrying the Exchange Items EI1 and EI2, even though these two Exchange Items were not included in the REC.

It is now possible to use this RPL in the model. For example, by connecting it also to other elements

Copy-Paste Layout

On a diagram showing the source elements of the REC, select all elements and copy the layout.

On a diagram when the RPL is displayed, paste the layout

The layout is synchronized between the REC and the RPL