Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Ecore 2 Ecore - Could use some input
Ecore 2 Ecore - Could use some input [message #958045] Thu, 25 October 2012 18:06 Go to next message
Daniel Kasmeroglu is currently offline Daniel KasmerogluFriend
Messages: 5
Registered: July 2009
Location: Berlin
Junior Member
Hi there,

I have to write some UI for a predefined ecore which is quite large and cannot be altered by myself. Apart from that this ecore provides several really inconvenient constructs. F.e.


  • From a semantical point of view there is a datatype definition Enumeration, Primitive, Record which will be established by a single model type DataType. The semantical distinction has to be made by several attribute/element values provided with that type.
  • Another thing is that there are several types which are basically identical as they provide exactly the same information (same attributes, same references etc.). They are simple redundant so there are type like RValue, LValue, ZValue which are equal but still different types.


From my development perspective I would like to simplify the application code which is somewhat ugly as it's necessary to deal with the abovementioned differences.
So I basically intend to use my own ecore internally which would achieve something like this:


  • Instead of the model element DataType I will get distinctive model elements Enumeration, Primitive and Record .
  • The redundant types RValue, LValue and ZValue should be mapped into something like this: Value [ type : {R, L, Z} ] .


Looking for such a possibility I found ecore2ecore. Unfortunately I failed to locate thorough tutorials/documentation about it.
So here are my questions:

1. Are my goals achievable using ecore2ecore or did I miss something ?
2. Where can I find detailed infos about it ?
3. Does anyone know about another technology to realize my goals ?

Thanks in advance.

Bye
Kasimir
Re: Ecore 2 Ecore - Could use some input [message #959254 is a reply to message #958045] Fri, 26 October 2012 15:13 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 26214
Registered: July 2009
Senior Member
Daniel,

Comments below.
On 26/10/2012 3:43 PM, Daniel Kasmeroglu wrote:
> Hi there,
>
> I have to write some UI for a predefined ecore which is quite large
> and cannot be altered by myself. Apart from that this ecore provides
> several really inconvenient constructs. F.e.
>
>
> From a semantical point of view there is a datatype definition
> Enumeration, Primitive, Record which will be established by a single
> model type DataType. The semantical distinction has to be made by
> several attribute/element values provided with that type.
> Another thing is that there are several types which are basically
> identical as they provide exactly the same information (same
> attributes, same references etc.). They are simple redundant so there
> are type like RValue, LValue, ZValue which are equal but still
> different types.
>
>
> From my development perspective I would like to simplify the
> application code which is somewhat ugly as it's necessary to deal with
> the abovementioned differences.
> So I basically intend to use my own ecore internally which would
> achieve something like this:
>
>
> Instead of the model element DataType I will get distinctive model
> elements Enumeration, Primitive and Record .
> The redundant types RValue, LValue and ZValue should be mapped into
> something like this: Value [ type : {R, L, Z} ] .
>
>
> Looking for such a possibility I found ecore2ecore. Unfortunately I
> failed to locate thorough tutorials/documentation about it.
> So here are my questions:
>
> 1. Are my goals achievable using ecore2ecore or did I miss something ?
No. It's purely a data structure representing a mapping. It doesn't do
anything useful other than to represent the mapping.
> 2. Where can I find detailed infos about it ?
There really aren't any.
> 3. Does anyone know about another technology to realize my goals ?
It sounds more like you want to do a model-to-model transformation.
>
> Thanks in advance.
>
> Bye
> Kasimir
Re: Ecore 2 Ecore - Could use some input [message #959361 is a reply to message #959254] Fri, 26 October 2012 17:02 Go to previous message
Daniel Kasmeroglu is currently offline Daniel KasmerogluFriend
Messages: 5
Registered: July 2009
Location: Berlin
Junior Member
Hi Ed,

Thanks for your answer.

Quote:
It sounds more like you want to do a model-to-model transformation.


You're right. I've had the impression that ecore2ecore was some sort of "cheap" M2M which comes with ecore itself. Unfortunately my time constraints on the software doesn't allow me to evaluate and compare different techniques so I will stick with the bad code (nevertheless it's an argument to get involved with M2M techniques anyway when I find the spare time for myself).

P.S.: This topic can be closed now as my questions have been answered properly.

Bye
Kasimir
Previous Topic:save resource as instance of org.w3c.dom.Document
Next Topic:Is it possible to maintain external entity references when saving ecore model?
Goto Forum:
  


Current Time: Fri Nov 21 12:37:32 GMT 2014

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

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