Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Get and create SysML subprofiles (SysML 1.4 Memtamodel)
Get and create SysML subprofiles (SysML 1.4 Memtamodel) [message #1753205] Thu, 02 February 2017 16:42 Go to next message
Rineseable Eika is currently offline Rineseable EikaFriend
Messages: 8
Registered: January 2016
Junior Member
Hi,

how can I get/create Profile Application for SysML subprofiles (Blocks, Allocations, ...) with SysML 1.4 metamodel. To sum up, what is the associated java code to acces and get for example Blocks profile application :

  <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_8Dbu0eR0EeaKr774zLalDA">
    <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_8Dbu0uR0EeaKr774zLalDA" source="http://www.eclipse.org/uml2/2.0.0/UML">
      <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/sysml/1.4/SysML#//blocks"/>
    </eAnnotations>
    <appliedProfile xmi:type="uml:Profile" href="pathmap://SysML14_PROFILES/SysML.profile.uml#SysML.package_packagedElement_Blocks"/>
  </profileApplication>


Regards,
Nesrine.

[Updated on: Mon, 06 February 2017 09:28]

Report message to a moderator

Re: Get and create SysML subprofiles [message #1753240 is a reply to message #1753205] Thu, 02 February 2017 20:59 Go to previous messageGo to next message
German Vega is currently offline German VegaFriend
Messages: 104
Registered: December 2015
Location: Grenoble, France
Senior Member
Hello

For a general discussion of how to work with profiles using the UML2 plug-ins for Eclipse, both programmatically and by using the sample UML editor see

https://wiki.eclipse.org/MDT/UML2/Introduction_to_UML2_Profiles

For a fully functional example showing how to create a UML class model, apply the Sysml Requirements profile and create applications of a stereotype, see the the attached files of my message in this post

https://www.eclipse.org/forums/index.php/mv/msg/965706/1753239/#msg_1753239

regards
Re: Get and create SysML subprofiles (Sysml 1.4 metamodel) [message #1753421 is a reply to message #1753240] Mon, 06 February 2017 09:24 Go to previous messageGo to next message
Rineseable Eika is currently offline Rineseable EikaFriend
Messages: 8
Registered: January 2016
Junior Member
Hi German,

thank you for the help, but it seems that the SysMLResourcesUtil that you handed me does not work with the sysml 1.4 metamodel. Do you have any clue about it?
regards,
Nesrine.
Re: Get and create SysML subprofiles (Sysml 1.4 metamodel) [message #1753426 is a reply to message #1753421] Mon, 06 February 2017 10:36 Go to previous messageGo to next message
German Vega is currently offline German VegaFriend
Messages: 104
Registered: December 2015
Location: Grenoble, France
Senior Member
Hello

I am not very familiar with SysML, so I can not help you with this level of detail.

The Eclipse implementation of SysML is provided by the Papyrus project

https://eclipse.org/papyrus/

In their main page is stated:

Quote:

Implemented standards: UML 2.5.0, SysML 1.1 & 1.4, OCL 2.3.1, fUML 1.1, ALF 1.0.1, MARTE 1.1 (incubation), EAST-ADL (incubation), RobotML (incubation), UML-RT (incubation) and ISO/IEC 42010.


so I suppose it should work with sysml 1.4, but on the other hand I cannot help but notice that in the Papyrus editor when I get the list of available profiles it only proposes me "SysML v1.1 formal/2008-11.02"

So I think you better ask directly in the Papyrus' forum

https://eclipse.org/forums/index.php?t=thread&frm_id=121
Re: Get and create SysML subprofiles (Sysml 1.4 metamodel) [message #1753432 is a reply to message #1753426] Mon, 06 February 2017 12:32 Go to previous messageGo to next message
German Vega is currently offline German VegaFriend
Messages: 104
Registered: December 2015
Location: Grenoble, France
Senior Member
Hello again Nesrine,

This issue kept turning in my head, so I made some more investigations.

I found that you need to install an extra component in Papyrus to get SysML 1.4 support

Go to Help->"Install Papyrus additional components" and look for SysML(Incubation)

After that, I can apply the SysML 1.4 profile to my models and I get a new plugin installed org.eclipse.papyrus.sysml14_.10.0.jar
that defines the new version of the profile and have generated java classes in a new package org.eclipse.papyrus.sysml14

So, at first glance I think that if you take my example and you change all references to classes in package org.eclipse.papyrus.sysml ( and its
sub-packages) and replace them by their corresponding classes in org.eclipse.papyrus.sysml14 it should work, at least in principle, I haven't
tested....

regards

German
Re: Get and create SysML subprofiles (Sysml 1.4 metamodel) [message #1753454 is a reply to message #1753432] Mon, 06 February 2017 16:21 Go to previous message
Rineseable Eika is currently offline Rineseable EikaFriend
Messages: 8
Registered: January 2016
Junior Member
Hi German,
thank you for your time Smile!

I did change the classes references by my sysml 1.4 plugins class to make it work with my metamodel. It seems like subprofiles management has changed comparing to prevoious metamodel. I'll ask on the appropriate forum and link the post here !
Thank you again.
Regards,
Nesrine.
Previous Topic:Cannot get Instances of Applied Stereotypes
Next Topic:Get classes from a model with the API
Goto Forum:
  


Current Time: Fri Apr 19 01:42:01 GMT 2024

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

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

Back to the top