Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Model generation starting from UML diagrams and c++ codes(Creation of a model instance for model 2 model transformation)
Model generation starting from UML diagrams and c++ codes [message #1853795] Mon, 18 July 2022 14:41 Go to next message
Federico Paolone is currently offline Federico PaoloneFriend
Messages: 12
Registered: April 2022
Junior Member
i'm new on Eclipse epsilon.
I have to do a model2model transformation.
I have the UML diagrams and c++ codes of the starting model and the target model.
I don't know how to use these files for generate the starting metamodel (.ecore) and after that, instanciate the starting model which will be used for the transformation in ETL.

can someone help me?


Re: Model generation starting from UML diagrams and c++ codes [message #1853798 is a reply to message #1853795] Mon, 18 July 2022 15:23 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2163
Registered: July 2009
Location: York, UK
Senior Member

Hi Fedrico,

> I have the UML diagrams and c++ codes of the starting model and the target model.

What do you mean by "c++ codes" of the starting/target model? Also, what format are your "UML diagrams" in?

Best,
Dimitris
Re: Model generation starting from UML diagrams and c++ codes [message #1853799 is a reply to message #1853798] Mon, 18 July 2022 15:37 Go to previous messageGo to next message
Federico Paolone is currently offline Federico PaoloneFriend
Messages: 12
Registered: April 2022
Junior Member
The UML diagrams are in uml 2.0 format, the c++ codes are the source codes that contains the implementations of the classes represented in the uml diagrams.

[Updated on: Mon, 18 July 2022 15:37]

Report message to a moderator

Re: Model generation starting from UML diagrams and c++ codes [message #1853800 is a reply to message #1853799] Mon, 18 July 2022 15:39 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2163
Registered: July 2009
Location: York, UK
Senior Member

Are you trying to transform UML models to C++ code?
Re: Model generation starting from UML diagrams and c++ codes [message #1853801 is a reply to message #1853800] Mon, 18 July 2022 16:05 Go to previous messageGo to next message
Federico Paolone is currently offline Federico PaoloneFriend
Messages: 12
Registered: April 2022
Junior Member
No, i'm trying to create the metamodels (.ecore file) starting from these files in eclipse epsilon.
Re: Model generation starting from UML diagrams and c++ codes [message #1853802 is a reply to message #1853801] Mon, 18 July 2022 16:14 Go to previous messageGo to next message
Antonio Garcia-Dominguez is currently offline Antonio Garcia-DominguezFriend
Messages: 594
Registered: January 2010
Location: Birmingham, UK
Senior Member

Which tool did you use to produce the UML diagrams? Did you use Papyrus, or did you use something else?
Re: Model generation starting from UML diagrams and c++ codes [message #1853803 is a reply to message #1853802] Mon, 18 July 2022 16:17 Go to previous messageGo to next message
Federico Paolone is currently offline Federico PaoloneFriend
Messages: 12
Registered: April 2022
Junior Member
MagicDraw
Re: Model generation starting from UML diagrams and c++ codes [message #1853821 is a reply to message #1853803] Tue, 19 July 2022 07:57 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2163
Registered: July 2009
Location: York, UK
Senior Member

Hi Fedrico,

Generating an Ecore metamodel from a UML class diagram makes sense (and the Eclipse UML2 project already provides some support for this) but I'm not sure I understand the role of the C++ code you mentioned in the process.

If the UML2 tooling linked above is not sufficient for the task at hand, could you please write a longer message and explain what you are trying to achieve in more detail? Please also attach small examples of UML/C++ input files that your transformation should consume and hand-crafted versions of the Ecore/model files you would like it to produce as output.

Best,
Dimitris

[Updated on: Tue, 19 July 2022 10:44]

Report message to a moderator

Re: Model generation starting from UML diagrams and c++ codes [message #1854093 is a reply to message #1853821] Mon, 01 August 2022 09:34 Go to previous messageGo to next message
Federico Paolone is currently offline Federico PaoloneFriend
Messages: 12
Registered: April 2022
Junior Member
The C++ codes are useless. Now i have found the way to create EMF project starting from UML diagrams using eclipse epsilon. But during the load of the UML diagrams i recive the following errors.

[Updated on: Mon, 01 August 2022 09:35]

Report message to a moderator

Re: Model generation starting from UML diagrams and c++ codes [message #1854094 is a reply to message #1854093] Mon, 01 August 2022 10:00 Go to previous messageGo to next message
Antonio Garcia-Dominguez is currently offline Antonio Garcia-DominguezFriend
Messages: 594
Registered: January 2010
Location: Birmingham, UK
Senior Member

We need a bit more information: the errors suggested that those attributes (I assume they are attributes?) are lacking a type. How did you produce such a metamodel?

It would speed up things if you could produce a minimal working example that reproduces your issue.
Re: Model generation starting from UML diagrams and c++ codes [message #1854219 is a reply to message #1854094] Mon, 08 August 2022 10:44 Go to previous messageGo to next message
Federico Paolone is currently offline Federico PaoloneFriend
Messages: 12
Registered: April 2022
Junior Member
The UML diagrams are created with magicdraw.
Re: Model generation starting from UML diagrams and c++ codes [message #1854455 is a reply to message #1854219] Fri, 19 August 2022 07:05 Go to previous message
Antonio Garcia-Dominguez is currently offline Antonio Garcia-DominguezFriend
Messages: 594
Registered: January 2010
Location: Birmingham, UK
Senior Member

Thank you for the information. Can you produce that minimal working example?
Previous Topic:emfatic: nested double-quotes in annotations?
Next Topic:ETL models
Goto Forum:
  


Current Time: Fri Apr 26 20:29:13 GMT 2024

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

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

Back to the top