Skip to main content



      Home
Home » Archived » M2M (model-to-model transformation) » [ATL] Copy entire Model without refining mode(Copy entire Model without refining mode)
[ATL] Copy entire Model without refining mode [message #754413] Wed, 02 November 2011 09:39 Go to next message
Eclipse UserFriend
Hi!

I am new in ATL and I have the following situation:

I have two models as input (model A and model B - model A uses Profile, that is in a third model file). I want as output a model C that is the same model A with some new elements and new connectors (I will decide wich new elements checking the model B).

First I tried to use the refining mode, but I face some problems, because this mode don`t work fine with two models as input, and I cannot use the "do" statement (I am not sure if I can access stereotypes outside the do statement).

So as second option I decided to clone the entire model (instead use refining mode) and make the changes that I want.

Is it possible?

Thanks in advance.

Andre.
Re: [ATL] Copy entire Model without refining mode [message #757706 is a reply to message #754413] Mon, 21 November 2011 05:05 Go to previous messageGo to next message
Eclipse UserFriend
That is possible. The easiest way is probably to write a standard transformation that jut copies every element and than use superimposition (check the wiki if you're not familiar with this) to overwrite rules or add new specific rules.
If you are using uml models there is a UML2Copy.atl transformation written by Dennis Wagelaar, you can use that as a starting point.
Re: [ATL] Copy entire Model without refining mode [message #758266 is a reply to message #757706] Tue, 22 November 2011 08:59 Go to previous messageGo to next message
Eclipse UserFriend
Hi,
I have used this transform many times and highly recommend it over using the refining mode. This approach is more flexible and customizable. Great job Dennis. The code is available at http://soft.vub.ac.be/viewvc/UML2CaseStudies/uml2cs-transformations/transformations/UML2Copy.atl?view=log
Regards,
Ronan
Re: [ATL] Copy entire Model without refining mode [message #758267 is a reply to message #758266] Tue, 22 November 2011 09:05 Go to previous message
Eclipse UserFriend
Hey!

Excelent!

Thanks for the replies!

André.
Previous Topic:[ATL] "Continue" Java statement
Next Topic:[ATL] Use more than one instance
Goto Forum:
  


Current Time: Sun Jun 22 22:55:33 EDT 2025

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

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

Back to the top