[ATL] Inter-model References [message #84866] |
Sun, 22 June 2008 17:07  |
Eclipse User |
|
|
|
Hello ATL team,
The ATL User Manual v0.7 specifies that
"The Inter-model references option allows generating models containing
inter-model references. In other words, it makes it possible to define,
within a transformation target model, some references to model elements
that are contained the other models that are involved in the
transformation"
However, I cannot find in the manual, or the wiki, how to define these
references. I've come into a situation where I need to use them, but don't
know how.
Specifically, what I want is to assign values to the target elements'
attributes by reference, not by value. In this way, the target model will
have some elements whose attributes reference the source model elements;
in such a way that when the values of the latter change, the former will
keep track of these changes.
Is this possible? can you point me to some examples?
Thanks a lot!
-Juan
|
|
|
Re: [ATL] Inter-model References [message #84899 is a reply to message #84866] |
Mon, 23 June 2008 03:53   |
Eclipse User |
|
|
|
Hello,
Juan Cadavid a écrit :
> Hello ATL team,
>
> The ATL User Manual v0.7 specifies that
>
> "The Inter-model references option allows generating models containing
> inter-model references. In other words, it makes it possible to define,
> within a transformation target model, some references to model elements
> that are contained the other models that are involved in the
> transformation"
>
> However, I cannot find in the manual, or the wiki, how to define these
> references. I've come into a situation where I need to use them, but
> don't know how.
>
> Specifically, what I want is to assign values to the target elements'
> attributes by reference, not by value. In this way, the target model
> will have some elements whose attributes reference the source model
> elements;
To do that you can set those references into the imperative section of
the rule (the "do" section), in order to bypass the transformation
mechanism.
You will have to use the "refSetValue" method to set references.
Best regards,
William
in such a way that when the values of the latter change, the
> former will keep track of these changes.
>
> Is this possible? can you point me to some examples?
>
> Thanks a lot!
>
> -Juan
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.29994 seconds