Question & Answer
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.
[{"Product":{"code":"SSB2MU","label":"IBM Engineering Systems Design Rhapsody"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"General Information","Platform":[{"code":"PF016","label":"Linux"},{"code":"PF033","label":"Windows"}],"Version":"8.1.3","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]
Product Synonym
Rational Rhapsody
Was this topic helpful?
Document Information
Modified date:
27 May 2022
UID
swg21968317