Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] parameterizing metamodel elements
[ATL] parameterizing metamodel elements [message #84806] Thu, 19 June 2008 15:02 Go to next message
Aram Hovsepyan is currently offline Aram HovsepyanFriend
Messages: 34
Registered: July 2009
Member
Hi,

I was wondering if something like this is possible in ATL and how.

rule class2class
{
from i : UML!Class
to o : UML!Class mapsTo i
(
name <- i.name
)
do
{
o.<metamodel parameter> <- 'somevalue';
}
}

where <metamodel parameter> could be for instance name, isAbstract, isLeaf
etc.


thanks in advance.
regards,
Aram.


--
Aram Hovsepyan
Distrinet research group
Katholieke Universiteit Leuven
Re: [ATL] parameterizing metamodel elements [message #84884 is a reply to message #84806] Mon, 23 June 2008 07:50 Go to previous message
William Piers is currently offline William PiersFriend
Messages: 297
Registered: July 2009
Senior Member
Hello,

There is no kind of parametrizable templates in ATL, but a possible
solution could be to generate ATL transformations, using the ATL metamodel.
create OUT:ATL from IN:metamodel

Here is an example of transformation creating ATL :
http://www.eclipse.org/m2m/atl/atlTransformations/#KM32ATLCo pier

Note that the mapsTo word is reserved by the syntax but isn't actually
used in ATL.

Best regards,

William

Aram Hovsepyan a écrit :
> Hi,
>
> I was wondering if something like this is possible in ATL and how.
>
> rule class2class
> {
> from i : UML!Class
> to o : UML!Class mapsTo i
> (
> name <- i.name
> )
> do
> {
> o.<metamodel parameter> <- 'somevalue';
> }
> }
>
> where <metamodel parameter> could be for instance name, isAbstract, isLeaf
> etc.
>
>
> thanks in advance.
> regards,
> Aram.
>
>
Previous Topic:[ATL] Documentation on Refinement Mode: A Contradiction?
Next Topic:[QVTO] Problems with blackboxing
Goto Forum:
  


Current Time: Mon Aug 19 00:28:19 GMT 2019

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

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

Back to the top