How to use inheritance with new term stereotypes with IBM Rational Rhapsody
stereotype; new; term; inherit; generalization; available; selectable
How do you use inheritance with new term stereotypes with IBM Rational Rhapsody
You want to apply a new term stereotype to SysML Blocks.
There are a couple of limitations to using new term stereotypes in
- 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.