|Re: [ATL] Avoid duplicate entries in target model [message #960037 is a reply to message #959271]
||Sat, 27 October 2012 05:53
| Ed Willink
Registered: July 2009
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.
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.
Powered by FUDForum
. Page generated in 0.01503 seconds