IBM Support

How to use inheritance with new term stereotypes with IBM Rational Rhapsody

Technote (FAQ)


Question

How do you use inheritance with new term stereotypes with IBM Rational Rhapsody

Cause

You want to apply a new term stereotype to SysML Blocks.

Answer

There are a couple of limitations to using new term stereotypes in

Rhapsody:

  • A new-term stereotype can only be applicable to a single metaclass.
  • A model element can only apply a single new-term stereotype.

For example, a SysML block is actually a UML class with a new-term
stereotype "block" applied to it. So you cannot apply another new-term
stereotype to it. The SysML new-term stereotypes can be found in the
SysML profile of the project.

However, it is possible to nest these new term stereotypes with the following steps:

1. create a new-term stereotype and make it applicable to
the "class" metaclass



2. Create a generalization from your new term to the new-term
stereotype "block" in the SysML profile.



Your new term stereotype is now inheriting the settings of the new-term stereotype "block" whilst also overriding with your own settings.

You can also add your new term stereotype to the "add new" menu using the General::Model::AddNewMenuStructure property.

Document information

More support for: Rational Rhapsody
General Information

Software version: 8.1.3

Operating system(s): Linux, Windows

Reference #: 1968317

Modified date: 14 October 2015