Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Ecore to UML/MARTE mapping
Ecore to UML/MARTE mapping [message #1241976] Sat, 08 February 2014 21:18 Go to next message
amina magd is currently offline amina magdFriend
Messages: 16
Registered: March 2012
Junior Member
Hello,

I would like to map an Ecore model to a UML/MARTE model(a model with stereotypes).
Technically, is it possible?

Thanks,
Best regards,
Amina
Re: Ecore to UML/MARTE mapping [message #1242516 is a reply to message #1241976] Sun, 09 February 2014 18:08 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

'map' could mean many things.

You can convert Ecore to UML (with stereotypes) using the conversion
option in the Ecore Editor Tool Bar menu.

Regards

Ed Willink

On 08/02/2014 21:18, amina magd wrote:
> Hello,
>
> I would like to map an Ecore model to a UML/MARTE model(a model with
> stereotypes). Technically, is it possible?
> Thanks,
> Best regards, Amina
Re: Ecore to UML/MARTE mapping [message #1242560 is a reply to message #1242516] Sun, 09 February 2014 19:54 Go to previous messageGo to next message
amina magd is currently offline amina magdFriend
Messages: 16
Registered: March 2012
Junior Member
Hi Ed Willink,

I mean by mapping, in this case, model to model mapping

If i use the conversion option in the Ecore Editor Tool Bar menu, i will be able to add ,if needed, information to the obtained UML model? Or shall i create a template to be able to add data after mapping?

Thanks a lot for your reply

Best regards,
Amina,

Re: Ecore to UML/MARTE mapping [message #1242966 is a reply to message #1242560] Mon, 10 February 2014 10:22 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

Still no idea what you mean by mapping.

Eclipse has a variety of model to model transformation tools that work
with UML stereotypes.

Regards

Ed Willink


On 09/02/2014 19:54, amina magd wrote:
> Hi Ed Willink,
> I mean by mapping, in this case, model to model mapping
> If i use the conversion option in the Ecore Editor Tool Bar menu, i
> will be able to add ,if needed, information to the obtained UML model?
> Or shall i create a template to be able to add data after mapping?
> Thanks a lot for your reply
> Best regards, Amina,
>
Re: Ecore to UML/MARTE mapping [message #1258906 is a reply to message #1242966] Thu, 27 February 2014 22:05 Go to previous messageGo to next message
amina magd is currently offline amina magdFriend
Messages: 16
Registered: March 2012
Junior Member
Hi Ed Willink,

In fact, i wanted to convert a UML/MARTE model to a meta-model Ecore.
I have already begun this by following these steps:
-I used papyrus under Eclipse Kepler to create a UML/MARTE class diagram (representing a design pattern)
-I created a new EMF Project
-In the next step 'model importers', I selected UML model.
-After that i selected the uml file (previously created) from the system for the 'Model url'

After that, two files are generated : model.ecore and model.genmodel
The classes existing in the UML/MARTE model are converted to the Ecore file, but the attributes and stereotypes offered by MARTE and annotating the UML/MARTE diagram are lost
Is there any problem in the conversion that i used ?

Any help please,
Thanks for reply and help,
Best regards,
Re: Ecore to UML/MARTE mapping [message #1259233 is a reply to message #1258906] Fri, 28 February 2014 06:43 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

If it doesn't do what you want you have a problem.

There are many processing options for the converter; perhaps you used
the wrong ones. And before you ask, I don't know where they are
documented. You need to use your intuition/empirical discovery.

Regards

Ed Willink

On 27/02/2014 22:05, amina magd wrote:
> Hi Ed Willink,
> In fact, i wanted to convert a UML/MARTE model to a meta-model Ecore.
> I have already begun this by following these steps: -I used papyrus
> under Eclipse Kepler to create a UML/MARTE class diagram (representing
> a design pattern) -I created a new EMF Project
> -In the next step 'model importers', I selected UML model. -After that
> i selected the uml file (previously created) from the system for the
> 'Model url'
>
> After that, two files are generated : model.ecore and model.genmodel
> The classes existing in the UML/MARTE model are converted to the Ecore
> file, but the attributes and stereotypes offered by MARTE and
> annotating the UML/MARTE diagram are lost
> Is there any problem in the conversion that i used ?
>
> Any help please, Thanks for reply and help,
> Best regards,
Re: Ecore to UML/MARTE mapping [message #1259381 is a reply to message #1259233] Fri, 28 February 2014 10:11 Go to previous messageGo to next message
Camille Letavernier is currently offline Camille LetavernierFriend
Messages: 952
Registered: February 2011
Senior Member
Hi,

There exists a standard UML-to-Ecore converter (Which handles a subset of UML, i.e. ~ Class Diagrams), but I'm not aware of any "UML/Marte to Ecore" converter. At least, it doesn't exist in Papyrus.

Papyrus provides the Marte profile, as well as a few customizations for manipulating (Creating & Viewing) Marte-profiled UML models.

Regards,
Camille


Camille Letavernier
Re: Ecore to UML/MARTE mapping [message #1259390 is a reply to message #1259381] Fri, 28 February 2014 10:23 Go to previous messageGo to next message
amina magd is currently offline amina magdFriend
Messages: 16
Registered: March 2012
Junior Member
Hi Camille,

I am using Papyrus under Eclipse Kepler, so the converter doesn't exist even under eclipse?

Thanks for reply,
Best regards,
Amina
Re: Ecore to UML/MARTE mapping [message #1259394 is a reply to message #1259390] Fri, 28 February 2014 10:30 Go to previous messageGo to next message
Camille Letavernier is currently offline Camille LetavernierFriend
Messages: 952
Registered: February 2011
Senior Member
Hi,


It may exist. But not within the Papyrus Project.

Many tools are built on top of Papyrus, so maybe one of them provides a "UML/Marte to Ecore" converter. But it seems very unlikely.

Ed wasn't mentionning such a tool; he was just mentionning a generic "UML to Ecore" converter, which has absolutely no support for Profiles/Stereotypes.


Regards,
Camille


Camille Letavernier
Re: Ecore to UML/MARTE mapping [message #1259401 is a reply to message #1259394] Fri, 28 February 2014 10:39 Go to previous messageGo to next message
amina magd is currently offline amina magdFriend
Messages: 16
Registered: March 2012
Junior Member
Hi Camille,

In that case, i think that i should create my own template for UML/MARTE 2 Ecore conversion

Thank you Camille and Ed Willink
Best regards,
Amina

[Updated on: Fri, 28 February 2014 10:40]

Report message to a moderator

Re: Ecore to UML/MARTE mapping [message #1259517 is a reply to message #1259394] Fri, 28 February 2014 13:26 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi Camile

In so far as Profiles/Stereotypes extend classes, UML2Ecore supports
them. Just look at all the Ecore Profile add-ons in the UML meta-model.

Regards

Ed Willink

On 28/02/2014 10:30, Camille Letavernier wrote:
> Hi,
>
>
> It may exist. But not within the Papyrus Project.
>
> Many tools are built on top of Papyrus, so maybe one of them provides
> a "UML/Marte to Ecore" converter. But it seems very unlikely.
>
> Ed wasn't mentionning such a tool; he was just mentionning a generic
> "UML to Ecore" converter, which has absolutely no support for
> Profiles/Stereotypes.
>
>
> Regards,
> Camille
Previous Topic:Stereotype "display place" appearance property
Next Topic:Any developments regarding Profile/Stereotype styling?
Goto Forum:
  


Current Time: Thu Mar 28 17:47:02 GMT 2024

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

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

Back to the top