Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] Inter-model References
[ATL] Inter-model References [message #84866] Sun, 22 June 2008 21:07 Go to next message
Juan Cadavid is currently offline Juan Cadavid
Messages: 49
Registered: July 2009
Location: Rennes, France
Member

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 07:53 Go to previous messageGo to next message
William Piers is currently offline William Piers
Messages: 297
Registered: July 2009
Senior Member
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
>
Re: [ATL] Inter-model References [message #85132 is a reply to message #84899] Wed, 25 June 2008 02:18 Go to previous message
Juan Cadavid is currently offline Juan Cadavid
Messages: 49
Registered: July 2009
Location: Rennes, France
Member

Thanks a lot for your help!

-Juan
Previous Topic:[ATL] condition in super-rules
Next Topic:How to recognize an UML 2.0 ontology file
Goto Forum:
  


Current Time: Sun Sep 21 16:09:41 GMT 2014

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

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