|Re: UML profile to Ecore transformation [message #1791136 is a reply to message #1791060]
||Sun, 24 June 2018 22:48
| Steven Schmock
Registered: June 2018
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).
Powered by FUDForum
. Page generated in 0.01487 seconds