Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsUML profile to Ecore transformation
https://www.eclipse.org/forums/index.php/mv/msg/1093854/1791060/#msg_1791060
i have created a UML profile with papyrus. The profile consists of stereotypes that extending different MetaClass, such as UML:Port and UML:Class.
Now i want to transform from this uml profile to an ecore file with ATL .
Is that possible? I found several Ecore to UML transformations, but not UML to Ecore.
Thanks in advance
Steven]]>Steven Schmock2018-06-22T10:06:00-00:00Re: UML profile to Ecore transformation
https://www.eclipse.org/forums/index.php/mv/msg/1093854/1791090/#msg_1791090
Dennis Wagelaar2018-06-22T17:16:36-00:00Re: UML profile to Ecore transformation
https://www.eclipse.org/forums/index.php/mv/msg/1093854/1791136/#msg_1791136
I have made an example to try it out. I've created a input model called SystemModel
and an output model called SystemDocumentation.
The input model was created with papyrus.
I've extended the UML port with the attributes Type and Description, as well as the UML class. Then I generated an Ecore from the Papyrus Uml model file.
Now I want to transform the SystemModel to SystemDocumentation. I need the name of UML Port and Class, but also the attributes from the stereotypes of the SystemModel
to group them in the SystemDocu class in SystemDocumentation.ecore.
I created a sysml file as source model, in which I created a class and a port and to which I applied the stereotypes ClassExtension and PortExtension
My first question is if this special case is possible and if it is possible, would someone have a hint how to formulate the atl rule? I want to get the attributes from the PortExtension and ClassExtension stereotypes and also some attributes from the uml types (Class and Port).]]>Steven Schmock2018-06-24T22:48:09-00:00