Get and create SysML subprofiles (SysML 1.4 Memtamodel) [message #1753455] |
Mon, 06 February 2017 11:35  |
Eclipse User |
|
|
|
Hi,
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>
The topic started here and it seems like the code That I've tried doesnt work with the metamodel sysml 1.4
Link here :
https://www.eclipse.org/forums/index.php/m/1753454/#msg_1753454
Best kinds,
Nesrine.
|
|
|
|
Re: Get and create SysML subprofiles (SysML 1.4 Memtamodel) [message #1753513 is a reply to message #1753457] |
Tue, 07 February 2017 06:12   |
Eclipse User |
|
|
|
Hi Benoit,
Thank you for the answer. So what I understand is that "programatically" I'm not able to get or apply à profile?
Let me give an example:
I'm java programing a Model to Model transformer from a model A to à target SysML 1.4 model. I want to transform a port element from model A to a FullPort port in the target SysML1.4 model. To do so, I need to create a port using UMLFactory, get the applicable stereotypes to acces the "Full port" stereotype. So, how can I transform and create a full port programatically ? I'm not supposed to do it on Papyrus IDE for instance. This is the same for the reste of SysML elements "allocation", "activities" , etc, etc, ...
Don't hesitate to ask for more specific details.
Regards,
Nesrine.
|
|
|
|
|
Re: Get and create SysML subprofiles (SysML 1.4 Memtamodel) [message #1783229 is a reply to message #1754766] |
Fri, 09 March 2018 07:29  |
Eclipse User |
|
|
|
Have you been able to make your "SysML14ResourcesUtilities.java" work? I'm trying to use Acceleros with SysML and as it seems in this context, such a functionality has been missing for many years now. Amazing that it still has not been implemented yet, as it seems. I'm trying to get this running but could use some help here.
|
|
|
Powered by
FUDForum. Page generated in 0.03988 seconds