Skip to main content



      Home
Home » Modeling » Papyrus » How extending MARTE stereotypes
How extending MARTE stereotypes [message #1744420] Mon, 26 September 2016 14:57 Go to next message
Eclipse UserFriend
Hello,
How can I extend an existing stereotype in Marte profile with new stereotype in eclipse?

My goal is to add new stereotypes to Marte profile by extending the <<HwPowersupply>> stereotype. How can I do this?

Could one help me please.
Thanks.

[Updated on: Tue, 27 September 2016 05:37] by Moderator

Re: How extending MARTE stereotypes [message #1744501 is a reply to message #1744420] Tue, 27 September 2016 09:20 Go to previous messageGo to next message
Eclipse UserFriend
Please could one help me to solve this problem.
Thanks in advanc
Re: How extending MARTE stereotypes [message #1744502 is a reply to message #1744420] Tue, 27 September 2016 09:21 Go to previous messageGo to next message
Eclipse UserFriend
Please could one help me to solve this problem.
Thanks in advance

[Updated on: Tue, 27 September 2016 09:22] by Moderator

Re: How extending MARTE stereotypes [message #1744566 is a reply to message #1744502] Wed, 28 September 2016 07:26 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

You need to do the following:
1. Create a Papyrus project and a profile model.
2. Import MARTE packages:
** Right click on root element > Import
** Import Registered Profile (if MARTE plugins are installed) or Import Package From User Model (if MARTE is a .uml file you downloaded from the OMG website).
** Select MARTE (or the .uml file in the 2nd case), then the MARTE packages you want to import (e.g. HRM).
3. Create a profile diagram and drag'n'drop the HwPowerSupply stereotype into the diagram.
4. Create your stereotype and make it inherit HwPowerSupply (generalization relationship).
5. Modify your stereotype as you wish.
6. Save your profile, accept to define it in the dialog that will open, then apply it in another model.
Re: How extending MARTE stereotypes [message #1744650 is a reply to message #1744566] Thu, 29 September 2016 06:03 Go to previous messageGo to next message
Eclipse UserFriend
Thanks a lot Shuai Li for your reply.
It works finally.
But when I saved my created profile I have this attached error.
I used types from MARTE profile to define attribute's type, (like NFP_Power, NFP_Frequency... ) I think here is the problem.
Can you help me to solve this problem please.
index.php/fa/27246/0/

[Updated on: Thu, 29 September 2016 06:04] by Moderator

Re: How extending MARTE stereotypes [message #1745035 is a reply to message #1744650] Tue, 04 October 2016 07:54 Go to previous messageGo to next message
Eclipse UserFriend
Did you also import the MARTE library packages? (They are different from the MARTE profile packages.)

I suppose you did since you are referencing elements of the MARTE library. How did you import the MARTE library packages? Through Right click > Import or by creating a <Package Import> element in the model?
Re: How extending MARTE stereotypes [message #1745038 is a reply to message #1745035] Tue, 04 October 2016 07:57 Go to previous message
Eclipse UserFriend
Hi Shuai Li,
Yes I imported the MARTE library packages and it works.
Thanks a lot for your help .
Previous Topic:Papyrus version 2.0.0 - properties view problem
Next Topic:Properties View is not refreshing properly
Goto Forum:
  


Current Time: Thu Feb 27 20:48:58 EST 2025

Powered by FUDForum. Page generated in 0.03626 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top