| extending requirement diagram in SysML [message #997795] |
Tue, 08 January 2013 13:56  |
Jeni Martin Messages: 15 Registered: November 2012 |
Junior Member |
|
|
Hi,
I just started working with Papyrus and I went through tutorial for making UML profiles (with the example of requirement Model). Now I want to extend the Requirement element in SysML. So I want to choose Requirement as my base metaclass. How can I do that?
Thank you so much in advance for your help.
|
|
|
| Re: extending requirement diagram in SysML [message #997852 is a reply to message #997795] |
Tue, 08 January 2013 16:47   |
Christian W. Damus Messages: 550 Registered: July 2009 |
Senior Member |
|
|
Hi, Jeni,
You should be able to import the SysML profile as an imported package
in your profile. In the Model Explorer, select the root package of
your profile and select "Import Registered Package" (not sure of the
exact label) in the context menu. Can you choose the SysML profile in
this dialog? If so, then you'll end up with that profile imported and
its types available to use in generalization relationships,
associations, etc.
However, I'm not sure that the UML2 implementation of "dynamic
profiles" support these kinds of dependencies between profiles very
well. I think it may copy all of the definitions from the referenced
profiles (SysML in your case) into your profile's Ecore definition, so
that at the EMF level you end up with a distinct copy of SysML that
isn't interoperable with the original SysML profile. Perhaps somebody
in this newsgroup knows better than I how this works with dynamic
profiles. I know that dependencies between profiles work well when the
profiles are statically generated.
HTH,
Christian
On 2013-01-08 18:56:19 +0000, Jeni Martin said:
> Hi,
> I just started working with Papyrus and I went through tutorial for
> making UML profiles (with the example of requirement Model). Now I want
> to extend the Requirement element in SysML. So I want to choose
> Requirement as my base metaclass. How can I do that?
>
> Thank you so much in advance for your help.
|
|
|
|
| Re: extending requirement diagram in SysML [message #998732 is a reply to message #998727] |
Thu, 10 January 2013 10:19   |
Christian W. Damus Messages: 550 Registered: July 2009 |
Senior Member |
|
|
Hi, Camille,
Thanks for the correction of the menu action.
Indeed, stereotypes are not metaclasses and thus cannot be extended by
stereotypes. But the Eclipse UML implementation supports
generalization of stereotypes well (though, as I said, I'm not sure
about how practical it is to have generalization relationships to
stereotypes in another profile when the profiles are dynamically
defined).
cW
On 2013-01-10 15:11:59 +0000, Camille Letavernier said:
> Hello,
>
>
> I think the "Import registered package" menu won't work in this case.
> It is intended for UML Libraries.
>
> However, the "Import registered profile" menu will work fine.
>
> You cannot choose the SysML Requirement as the "Base Metaclass" of your
> new Stereotype. Instead, you should create a Generalization between
> your Stereotype and the SysML Requirement.
>
>
> Regards,
> Camille
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.01786 seconds