Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] automatic copy of a model
[ATL] automatic copy of a model [message #654917] Thu, 17 February 2011 15:44 Go to next message
nicholas pacini is currently offline nicholas paciniFriend
Messages: 31
Registered: December 2010
Member
Hello all,

I was wondering if ATL provides some means to make a copy of an input model to the output one.

Here's my situation:

I'd like to divide a transformation from model A to model B in two steps: First a from A to an intermediate_B. Second from A and intermediate_B to B.

In the second step i'd like to avoid writing many rules to make a one-one transformation, so i was searching for something that makes this transformation in automatic.

I hope I've explained clearly what I mean,

Regards,
Nicholas
Re: [ATL] automatic copy of a model [message #655067 is a reply to message #654917] Fri, 18 February 2011 08:30 Go to previous messageGo to next message
Vincent MAHE is currently offline Vincent MAHEFriend
Messages: 129
Registered: July 2009
Senior Member
Le 17/02/2011 16:44, nicholas a écrit :
> Hello all,
>
> I was wondering if ATL provides some means to make a copy of an input
> model to the output one.
>
> Here's my situation:
>
> I'd like to divide a transformation from model A to model B in two
> steps: First a from A to an intermediate_B. Second from A and
> intermediate_B to B.
>
> In the second step i'd like to avoid writing many rules to make a
> one-one transformation, so i was searching for something that makes this
> transformation in automatic.
>
> I hope I've explained clearly what I mean,
>
> Regards,
> Nicholas

You may have a look on the 'refining' mode of ATL, which could answer
your need (or not).
--
Cordialement

Vincent MAHÉ

Ingénieur Expert - Projet IDM++ - Équipe AtlanMod
École des Mines de Nantes
La Chantrerie - 4, rue Alfred Kastler
B.P. 20722 - F-44307 NANTES Cedex 3
Tel: (33)2 51 85 81 00
Re: [ATL] automatic copy of a model [message #655454 is a reply to message #654917] Mon, 21 February 2011 08:49 Go to previous messageGo to next message
nicholas pacini is currently offline nicholas paciniFriend
Messages: 31
Registered: December 2010
Member
Thanks Vincent,

I've tried a bit with this refining mode, but unfortunately it doesn't allow using "do" blocks and called rules which is a drawback in my opinion. Anyways I'll try to find some workaround to avoid this issue. Thanks anyway for the advice.

Regards,
Nicholas
Re: [ATL] automatic copy of a model [message #655476 is a reply to message #655454] Mon, 21 February 2011 10:17 Go to previous messageGo to next message
Vincent MAHE is currently offline Vincent MAHEFriend
Messages: 129
Registered: July 2009
Senior Member
Le 21/02/2011 09:49, nicholas a écrit :
> Thanks Vincent,
>
> I've tried a bit with this refining mode, but unfortunately it doesn't
> allow using "do" blocks and called rules which is a drawback in my
> opinion. Anyways I'll try to find some workaround to avoid this issue.
> Thanks anyway for the advice.
>
> Regards,
> Nicholas

Most uses of "do" blocks can be replaced by declarative code if thinking
of what we want in terms of sets and subsets. It is not a trivial
exercise when we are not used of such an approach, but the result is
always interesting and gives a step to next progress.
--
Cordialement

Vincent MAHÉ

Ingénieur Expert - Projet IDM++ - Équipe AtlanMod
École des Mines de Nantes
La Chantrerie - 4, rue Alfred Kastler
B.P. 20722 - F-44307 NANTES Cedex 3
Tel: (33)2 51 85 81 00
Re: [ATL] automatic copy of a model [message #655941 is a reply to message #655476] Wed, 23 February 2011 12:21 Go to previous message
Cedric Gava is currently offline Cedric GavaFriend
Messages: 53
Registered: July 2009
Member
see msg 4158:[ATL] Model Copy
and
http://soft.vub.ac.be/viewvc/UML2CaseStudies/uml2cs-transfor mations/EModelCopyGenerator.atl?revision=7689&view=marku p

could provide you some help in copying model without using the refining
mode

Kind regards


sooo lonely friends of eclipse on forum
http://www.eclipse.org/donate/images/friendslogo160.jpg
Previous Topic:[QVTo] Setting the parent (owner) of a new element
Next Topic:[ATL] resoveTemp and eopposite
Goto Forum:
  


Current Time: Thu Mar 04 10:40:22 GMT 2021

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

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

Back to the top