Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » generating n attributes
generating n attributes [message #106661] Tue, 16 June 2009 19:18 Go to next message
bouhmid  is currently offline bouhmid Friend
Messages: 5
Registered: July 2009
Junior Member
Hi ,
I want to generate n classe for the target model from 1 classe from the
source target.

rule rule1 {
from
s : model1!X
to
t : model2!Y (linktoz<-s.z)
}



rule rule2 {
from
s : model1!Z
to
t: model2!A,
t1 : model2!B,
t2:model3!C

}
Thanks
Re: [ATL] generating n attributes [message #106675 is a reply to message #106661] Wed, 17 June 2009 09:37 Go to previous messageGo to next message
Freddy Allilaire is currently offline Freddy AllilaireFriend
Messages: 130
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------090609040003010709070209
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 8bit

Hi,

I'm not sure what is exactly your question.
To generate n classes from one, I advise you to use lazy rules.
More details here:
http://wiki.eclipse.org/index.php?title=ATL/User_Guide#Lazy_ Rules

Regards,
Freddy.

bouhmid a
Re: [ATL] generating n attributes [message #106728 is a reply to message #106675] Wed, 17 June 2009 19:47 Go to previous message
bouhmid  is currently offline bouhmid Friend
Messages: 5
Registered: July 2009
Junior Member
Using those rules i generate target model like that:

<Y>
<A />
<Y />
<B />
<C />
And i need to generate model like that :

<Y>
<A />
<B />
<C />
<Y />

Thank you
Previous Topic:[ATL] Calling ATL Compiler from JAVA
Next Topic:Extract ATL model to ATL text - reloaded
Goto Forum:
  


Current Time: Wed Jan 15 13:53:17 GMT 2025

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

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

Back to the top