I'm looking for a M2M transformation tool for Modisco's Java Model [message #682176] |
Fri, 10 June 2011 14:58 |
Thanasis Naskos Messages: 22 Registered: March 2011 |
Junior Member |
|
|
Hi,
I'd like to ask you if is there any M2M transformation tool which is specialized in Modisco's Java Model transformations?
I'm using ATL to make transformations in Java Models parsed with JavaDiscoverer...
Those transformations concern adding new Classes, Interfaces, Packages, new Java code in existing methods or changing modifiers and stuff like that...
From what I've understood, ATL is not the greatest choice for this purpose... (ex 1500 lines of ATL code, needed to just copy a Java Model and this is not the only example!)...
I've also checked ETL (Epsilon Transformation Language) with no improvement in code lines!
The problem is not in those two transformation tools neither in Modisco's Java Model... Modisco's Java Model is very analytic (and this is very good) and those two tools provide general purpose transformations (and this is also good), but putting those two work together mess things up!!!
What I'm looking for, is a tool that is specialized in transforming (or refactoring) Modisco's Java Model...
If there isn't any implemented tool or any specification document for a new tool and a new DSL, I can work on it!
Thank you for your interest!
[Updated on: Sat, 11 June 2011 08:36] Report message to a moderator
|
|
|
|
Re: I'm looking for a M2M transformation tool for Modisco's Java Model [message #684071 is a reply to message #682176] |
Wed, 15 June 2011 00:22 |
Thanasis Naskos Messages: 22 Registered: March 2011 |
Junior Member |
|
|
Hi Hugo,
You've got a point but, working on such transformations (using ATL) made me looking for an other tool...
I'd say that it's not "relatively quick" it's "absolutely slow" trying to implement even simple transformations using ATL, on Modisco's Java Model.
I'm not saying that I'm an ATL's-guru, I'm using ATL 6 months now, but I don't think that I'm doing something wrong that makes everything seem so difficult.
Just consider that copying a Java Model to an other Java Model, takes about 1500 ATL code lines (just copy, without transformations). Yes I found a library to do my job, that produces this code automatically, but what I want and I believe you want it too, is producing easy to understand and sort code for such a simple operation...
I believe that Modisco's Java Model deserves a special and unique transformation tool...
See how many users have read this post so far.. Everybody is looking for something easier to use!
What do you think...?
Thank you for your interest!!
Regards
Thanasis
|
|
|
Re: I'm looking for a M2M transformation tool for Modisco's Java Model [message #684200 is a reply to message #684071] |
Wed, 15 June 2011 08:09 |
Hugo Bruneliere Messages: 674 Registered: July 2009 |
Senior Member |
|
|
Hi Thanasis,
I really understand your point. And we are open to any relevant contribution in this area.
I was just mentioning the fact of creating libraries of standard base operations (dedicated to the Java metamodel) that could be directly reused as is in several transformations, not libraries of transformations themselves.
Of course, if the mapping to be performed is complex (and the concerned metamodels too, like the Java one), it will be very difficult (even impossible?) anyway to totally hide this complexity, and this independently from the used transformation technology.
My idea was just to propose a set of common predefined helpers in order to facilitate the building of such mappings and limit the amount of code to be duplicated in several transformations.
Concerning the copy of a Java model, have you already tried to use the ATL Refining Mode?
It is documented from http://wiki.eclipse.org/ATL/User_Guide_-_The_ATL_Language#ATL_Refining_Mode and you can find several entries on this special mode in the M2M forum.
Anyway, elaborating on a specific transformation language is still another possible alternative.
For this, the ATL infrastructure (i.e. the ACG language and ATL Virtual Machine) offers capabilities to define and then execute Domain-Specific Transformation Languages: http://wiki.eclipse.org/ACG .
For all technical questions specific to the use of ATL or its infrastructure, I would recommend you to use the M2M forum (and put the [ATL] tag in the subject of the posts).
However, in the context of MoDisco, we would be very interested in following what you're doing around our Java metamodel
Best regards,
Hugo
--------------------------------------------------------
Hugo Bruneliere, PhD
NaoMod team (IMT Atlantique & LS2N-CNRS)
Nantes - France
--------------------------------------------------------
|
|
|
|
Powered by
FUDForum. Page generated in 0.02004 seconds