Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] Structuring a transformation in different files / libraries
[ATL] Structuring a transformation in different files / libraries [message #93689] Wed, 29 October 2008 10:32 Go to next message
Skander TURKI is currently offline Skander TURKIFriend
Messages: 130
Registered: July 2009
Senior Member
Hi,
I'm building a transformation that has a big managed rule that calls a lot
of little lazy rules. So i want to separate the lazy rules in other ATL
files for better readability and to have a more automated development
process (i'm thinking of an automatic generation of these files/libraries
because of the repeated structure they have).

So the problem is :
- How to call a lazy rule that is defined in a different
file/Module/library?
- Is there another way to better structure the transformation?
- Is there a forthcoming release of ATL that deals with such issues?

Thanks for all!!

------------------------------------------------------------ ------
Dr. Skander TURKI
Post-Doc
Université de Bretagne Sud
Lab-STICC / CNRS UMR 3192
BP92116 / 56321 LORIENT Cedex
Tel:0624392697
------------------------------------------------------------ ------
Re: [ATL] Structuring a transformation in different files / libraries [message #93762 is a reply to message #93689] Wed, 29 October 2008 14:11 Go to previous messageGo to next message
Freddy Allilaire is currently offline Freddy AllilaireFriend
Messages: 130
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------090805090305030200080800
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 8bit

Hi Skander,

I think it is not possible by default :-(. Maybe you could use ATL
superimposition (http://wiki.eclipse.org/ATL_Superimposition) to do
this, but this wasn't the intended goal of superimposition.

You can ask for an enhancement via M2M/ATL Bugzilla ;-)

Regards,
Freddy.

Skander a
Re: [ATL] Structuring a transformation in different files / libraries [message #93794 is a reply to message #93689] Wed, 29 October 2008 14:46 Go to previous messageGo to next message
Alfons Laarman is currently offline Alfons LaarmanFriend
Messages: 71
Registered: July 2009
Member
Hi,

The only things you can put in a library are queries (OCL helpers). Only
helpers on non-primitive types (model elements) and global queries are
accessible outside the library itself.
I advice you to compact the lazy rules by extracting OCL code to helpers and
put those in the library where appropriate.
The main purpose of a library is ofcourse to share code between different
transformations.

If you group your rules according to purpose or type (lazy / called / helper
/ normal rule) and place bookmarks in your code, will it make your code
better manageable?

A final idea would be to use super imposition to put the lazy rules in a
kind of library. But wsince this is not the purpose of super imposition it
may lead to undesirable effects.


Good luck, regards,

Alfons


"Skander " <skander.turki@gmail.com> schreef in bericht
news:1de05ef71acd2ab2c815964e316b9913$1@www.eclipse.org...
> Hi,
> I'm building a transformation that has a big managed rule that calls a lot
> of little lazy rules. So i want to separate the lazy rules in other ATL
> files for better readability and to have a more automated development
> process (i'm thinking of an automatic generation of these files/libraries
> because of the repeated structure they have).
> So the problem is : - How to call a lazy rule that is defined in a
> different file/Module/library?
> - Is there another way to better structure the transformation?
> - Is there a forthcoming release of ATL that deals with such issues?
>
> Thanks for all!!
>
> ------------------------------------------------------------ ------
> Dr. Skander TURKI
> Post-Doc
> Universit
Re: [ATL] Structuring a transformation in different files / libraries [message #93809 is a reply to message #93762] Wed, 29 October 2008 14:50 Go to previous messageGo to next message
Alfons Laarman is currently offline Alfons LaarmanFriend
Messages: 71
Registered: July 2009
Member
Hi Freddy,

You beat me :)
The good news is that "rule libraries" was planned (at least at one point in
time) for a future release of ATL:
http://sosym.dcs.kcl.ac.uk/events/mtip05/submissions/jouault _kurtev__transforming_models_with_atl.pdf
page 26


Cheers,

Alfons

"Freddy Allilaire" <freddy.allilaire@obeo.fr> schreef in bericht
news:ge9qu5$qqn$1@build.eclipse.org...
> Hi Skander,
>
> I think it is not possible by default :-(. Maybe you could use ATL
> superimposition (http://wiki.eclipse.org/ATL_Superimposition) to do
> this, but this wasn't the intended goal of superimposition.
>
> You can ask for an enhancement via M2M/ATL Bugzilla ;-)
>
> Regards,
> Freddy.
>
> Skander a
Re: [ATL] Structuring a transformation in different files / libraries [message #93822 is a reply to message #93762] Wed, 29 October 2008 14:52 Go to previous message
Skander TURKI is currently offline Skander TURKIFriend
Messages: 130
Registered: July 2009
Senior Member
hi freddy,
i posted the issue under the ticket number :[Modeling] Bug#: 252593

i'll see if the superimposition could help me out,
thanks
Previous Topic:UML 1.4 (or UML 1.5) to UML 2.1.x?
Next Topic:Random
Goto Forum:
  


Current Time: Fri Apr 26 01:40:45 GMT 2024

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

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

Back to the top