Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] refining
[ATL] refining [message #97530] Thu, 08 January 2009 09:02 Go to next message
sabatier is currently offline sabatierFriend
Messages: 14
Registered: July 2009
Junior Member
Hello everybody,

In refining mode, how can i copy exactely my input model to my output model ?

No need to write any rule ? just header ?

thank
Re: [ATL] refining [message #97544 is a reply to message #97530] Thu, 08 January 2009 09:03 Go to previous messageGo to next message
sabatier is currently offline sabatierFriend
Messages: 14
Registered: July 2009
Junior Member
sabatier a écrit :
> Hello everybody,
>
> In refining mode, how can i copy exactely my input model to my output
> model ?
>
> No need to write any rule ? just header ?
>
> thank

I use last version of ATL in Topcased project.
Re: [ATL] refining [message #97576 is a reply to message #97544] Thu, 08 January 2009 14:53 Go to previous messageGo to next message
William Piers is currently offline William PiersFriend
Messages: 303
Registered: July 2009
Senior Member
Hello,

sabatier a écrit :
> sabatier a écrit :
>> Hello everybody,
>>
>> In refining mode, how can i copy exactely my input model to my output
>> model ?
>>
>> No need to write any rule ? just header ?

It will work with the latest version of ATL refining mode, available in
the next ATL 3.0 release.

>>
>> thank
>
> I use last version of ATL in Topcased project.

Topcased includes the ATL 2.0 version, which contains the old refining
version. To copy a model with that version you will have to write a rule
transforming the root element, i.e. UML!Model for UML models, into itself.
This is one of the reason we now have a new refining mode. :-)

If you want to evaluate the 3.0 version, you can install the ATL 3.0.0M4
build, available here:
http://www.eclipse.org/modeling/m2m/downloads/index.php?proj ect=atl.

Best regards,

William
Re: [ATL] refining [message #97591 is a reply to message #97576] Fri, 09 January 2009 13:44 Go to previous messageGo to next message
sabatier is currently offline sabatierFriend
Messages: 14
Registered: July 2009
Junior Member
Thank you

it's all i want to know

Best regards

Laurent


William Piers a écrit :
> Hello,
>
> sabatier a écrit :
>> sabatier a écrit :
>>> Hello everybody,
>>>
>>> In refining mode, how can i copy exactely my input model to my output
>>> model ?
>>>
>>> No need to write any rule ? just header ?
>
> It will work with the latest version of ATL refining mode, available in
> the next ATL 3.0 release.
>
>>>
>>> thank
>>
>> I use last version of ATL in Topcased project.
>
> Topcased includes the ATL 2.0 version, which contains the old refining
> version. To copy a model with that version you will have to write a rule
> transforming the root element, i.e. UML!Model for UML models, into itself.
> This is one of the reason we now have a new refining mode. :-)
>
> If you want to evaluate the 3.0 version, you can install the ATL 3.0.0M4
> build, available here:
> http://www.eclipse.org/modeling/m2m/downloads/index.php?proj ect=atl.
>
> Best regards,
>
> William
Re: [ATL] refining [message #99629 is a reply to message #97591] Thu, 12 February 2009 17:44 Go to previous messageGo to next message
Ronan B is currently offline Ronan BFriend
Messages: 273
Registered: July 2009
Senior Member
On this topic. Is it possible to use the annotation -- @atlcompiler atl2004
to invoke the older compiler so that refining will work. I tried to use it
today and it had no effect. I'm using ATL version 2.0.0 I'd like to avoid
installin ATL v3 as it will break my other dependencies.
Regards,
Ronan
Re: [ATL] refining [message #99638 is a reply to message #99629] Thu, 12 February 2009 17:54 Go to previous messageGo to next message
William Piers is currently offline William PiersFriend
Messages: 303
Registered: July 2009
Senior Member
Hi,

Ronan a écrit :
> On this topic. Is it possible to use the annotation -- @atlcompiler atl2004
> to invoke the older compiler so that refining will work. I tried to use

Yes, it will switch to the old compiler - and the old refining mode.

> it today and it had no effect. I'm using ATL version 2.0.0 I'd like to

Did you try it with the atlcompiler atl2006 option or 2004 ?
In the 2.0.0 release, refining mode wasn't implemented in the 2006
compiler (normally it raises an error in the atl file).

Regards,

William

> avoid installin ATL v3 as it will break my other dependencies.
> Regards,
> Ronan
>
Re: [ATL] refining [message #99926 is a reply to message #99638] Fri, 13 February 2009 13:16 Go to previous messageGo to next message
Ronan B is currently offline Ronan BFriend
Messages: 273
Registered: July 2009
Senior Member
Hi William,
I used the following ATL transformation. The output only returns matches
to the rule defined i.e. Properties with no type defined. I want these
returned in addition to the rest of the input model. Am I right in
thinking this should work with the annotation?

-- @atlcompiler atl2004
module SetDefaultAttributeTypes; -- Module Template
create OUT : UML refining IN : UML;

rule AssignDataTypeToProperty
{
from
inx : UML!Property
(
inx.type.oclIsUndefined()
)
to
out : UML!Property
(
type<-tpe
),
tpe : UML!DataType
(
--TODO
)
}

Thanks,
Ronan
Re: [ATL] refining [message #101093 is a reply to message #99926] Thu, 05 March 2009 16:13 Go to previous messageGo to next message
Miguel Llàcer San Fernando is currently offline Miguel Llàcer San FernandoFriend
Messages: 63
Registered: July 2009
Member
Hi,

I have tried to use refining mode in ATL 2.0 and I haven't obtained
expected results.
By the other hand, I have update to ATL 3.0 in eclipse Ganymede 3.4 and I
have tested public2private example and it works fine.

But I have some questions:
I have tried to use do block and an error appears (do block not supported
in refining mode) and it occurrs the same with called rules (called rules
not supported in refining mode yet).

will we be able to use it in future ?¿?
Re: [ATL] refining [message #105959 is a reply to message #101093] Tue, 02 June 2009 14:35 Go to previous message
Esteban Dugueperoux is currently offline Esteban DugueperouxFriend
Messages: 472
Registered: July 2009
Senior Member
Lazy rule also doesn't seems works in refining mode in ATL 3.0

Miguel Llácer San Fernando a écrit :
> Hi,
>
> I have tried to use refining mode in ATL 2.0 and I haven't obtained
> expected results.
> By the other hand, I have update to ATL 3.0 in eclipse Ganymede 3.4 and
> I have tested public2private example and it works fine.
>
> But I have some questions:
> I have tried to use do block and an error appears (do block not
> supported in refining mode) and it occurrs the same with called rules
> (called rules not supported in refining mode yet).
>
> will we be able to use it in future ?¿?
>
Previous Topic:transformation into JAVA
Next Topic:[ATL] How to invoke a lazy rule that produces multiple outputs?
Goto Forum:
  


Current Time: Sat Jan 18 12:09:37 GMT 2025

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

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

Back to the top