Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Model-to-Model Transformation » [ATL] Avoid duplicate entries in target model
[ATL] Avoid duplicate entries in target model [message #959271] Fri, 26 October 2012 15:31 Go to next message
Tomás Ruiz-López is currently offline Tomás Ruiz-LópezFriend
Messages: 12
Registered: October 2012
Location: Dallas
Junior Member
Dear community members,

I am pretty new to ATL but I have already done some successful experiments with it. However, I'm having a concern with my last experiment. When I am applying a transformation rule, I am obtaining duplicated instances in the target model. This is due to the fact that several instances of the source model map to the same instance of the target model, but add some new contents to it.

Nevertheless, what I obtain is that a new instance in the target model is created for each source element. Is there any possible way to check if the target element has already been created, and if so, take it and add it some extra features? I know the semantics of QVT Relations work like that, but I would like to know how this works on ATL.

I hope to be clear. Any help would be appreciated.
Re: [ATL] Avoid duplicate entries in target model [message #960037 is a reply to message #959271] Sat, 27 October 2012 05:53 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7670
Registered: July 2009
Senior Member
Hi

Please use the ATL newsgroup/forum for ATL discussion.

This is a FAQ; you will find many answers.

I'm not an ATL user, so I cannot remember the exact syntax, but there is
an idiom specifically for this problem. Read the documentation.

Regards

Ed Willink

On 26/10/2012 20:32, Tomás Ruiz-López wrote:
> Dear community members,
>
> I am pretty new to ATL but I have already done some successful
> experiments with it. However, I'm having a concern with my last
> experiment. When I am applying a transformation rule, I am obtaining
> duplicated instances in the target model. This is due to the fact that
> several instances of the source model map to the same instance of the
> target model, but add some new contents to it.
>
> Nevertheless, what I obtain is that a new instance in the target model
> is created for each source element. Is there any possible way to check
> if the target element has already been created, and if so, take it and
> add it some extra features? I know the semantics of QVT Relations work
> like that, but I would like to know how this works on ATL.
>
> I hope to be clear. Any help would be appreciated.
Previous Topic:ATL with Xtext Resource
Next Topic:creating psm
Goto Forum:
  


Current Time: Tue Sep 24 08:57:14 GMT 2024

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

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

Back to the top