Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » How extending MARTE stereotypes
How extending MARTE stereotypes [message #1744420] Mon, 26 September 2016 18:57 Go to next message
Raoudha Saida is currently offline Raoudha SaidaFriend
Messages: 41
Registered: June 2016
Member
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 09:37]

Report message to a moderator

Re: How extending MARTE stereotypes [message #1744501 is a reply to message #1744420] Tue, 27 September 2016 13:20 Go to previous messageGo to next message
Raoudha Saida is currently offline Raoudha SaidaFriend
Messages: 41
Registered: June 2016
Member
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 13:21 Go to previous messageGo to next message
Raoudha Saida is currently offline Raoudha SaidaFriend
Messages: 41
Registered: June 2016
Member
Please could one help me to solve this problem.
Thanks in advance

[Updated on: Tue, 27 September 2016 13:22]

Report message to a moderator

Re: How extending MARTE stereotypes [message #1744566 is a reply to message #1744502] Wed, 28 September 2016 11:26 Go to previous messageGo to next message
Shuai Li is currently offline Shuai LiFriend
Messages: 21
Registered: March 2016
Location: Paris Saclay, France
Junior Member
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 10:03 Go to previous messageGo to next message
Raoudha Saida is currently offline Raoudha SaidaFriend
Messages: 41
Registered: June 2016
Member
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 10:04]

Report message to a moderator

Re: How extending MARTE stereotypes [message #1745035 is a reply to message #1744650] Tue, 04 October 2016 11:54 Go to previous messageGo to next message
Shuai Li is currently offline Shuai LiFriend
Messages: 21
Registered: March 2016
Location: Paris Saclay, France
Junior Member
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 11:57 Go to previous message
Raoudha Saida is currently offline Raoudha SaidaFriend
Messages: 41
Registered: June 2016
Member
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: Mon Oct 07 02:18:49 GMT 2024

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

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

Back to the top