Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Modeling (top-level project) » [ATL Transfromation] How to create a new class
[ATL Transfromation] How to create a new class [message #380528] Thu, 03 May 2007 15:33 Go to next message
Eclipse UserFriend
Originally posted by: larsan.terra.es

Hello,

I
Re: [ATL Transfromation] How to create a new class [message #380532 is a reply to message #380528] Thu, 03 May 2007 15:56 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 26215
Registered: July 2009
Senior Member
Lara,

Please use the GMT newsgroup to ask questions about ATL. I've added it
to the "to" list so there's no need to repost.


Lara wrote:
> Hello,
>
> I´m making a transformation with ATL. My metamodels are uml_1.4.4. I want to
> create a new class in my output model without getting any information from
> the input model, how can I do it?
> Thanks!
>
>
>
Re: [ATL Transfromation] How to create a new class [message #380534 is a reply to message #380528] Thu, 03 May 2007 16:04 Go to previous messageGo to next message
Freddy Allilaire is currently offline Freddy AllilaireFriend
Messages: 130
Registered: July 2009
Senior Member
Dear Lara,

For model transformation specific questions and more especially ATL,
please use the M2M newsgroup. I've added it to the "to"list.

Concerning your question, you should use a called rule.
A detailed explanation of "Called Rule" is available in the ATL User
Manual (p 43):
http://www.eclipse.org/m2m/atl/doc/ATL_User_Manual%5Bv0.7%5D .pdf

HTH

Regards,
Freddy.

Lara a écrit :
> Hello,
>
> I´m making a transformation with ATL. My metamodels are uml_1.4.4. I want to
> create a new class in my output model without getting any information from
> the input model, how can I do it?
> Thanks!
>
>


--
Freddy Allilaire - ATLAS Group (INRIA & LINA)
http://www.sciences.univ-nantes.fr/lina/atl/contrib/allilair e
Re: [ATL Transfromation] How to create a new class [message #380537 is a reply to message #380534] Thu, 03 May 2007 16:17 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 26215
Registered: July 2009
Senior Member
Freddy,

Sorry for forgetting about the new newsgroup...


Freddy Allilaire wrote:
> Dear Lara,
>
> For model transformation specific questions and more especially ATL,
> please use the M2M newsgroup. I've added it to the "to"list.
>
> Concerning your question, you should use a called rule.
> A detailed explanation of "Called Rule" is available in the ATL User
> Manual (p 43):
> http://www.eclipse.org/m2m/atl/doc/ATL_User_Manual%5Bv0.7%5D .pdf
>
> HTH
>
> Regards,
> Freddy.
>
> Lara a écrit :
>> Hello,
>>
>> I´m making a transformation with ATL. My metamodels are uml_1.4.4. I
>> want to create a new class in my output model without getting any
>> information from the input model, how can I do it?
>> Thanks!
>>
>
>
Re: [ATL Transfromation] How to create a new class [message #380540 is a reply to message #380537] Thu, 03 May 2007 20:32 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: larsan.terra.es

Thanks!! I'll use this newsgroup, sorry about that!
Lara
Re: [ATL Transfromation] How to create a new class [message #380543 is a reply to message #380537] Thu, 03 May 2007 20:38 Go to previous messageGo to next message
Freddy Allilaire is currently offline Freddy AllilaireFriend
Messages: 130
Registered: July 2009
Senior Member
No problem :-)

Thank you for your great job on Eclipse newsgroups.

Freddy.

Ed Merks a écrit :
> Freddy,
>
> Sorry for forgetting about the new newsgroup...
>
>
> Freddy Allilaire wrote:
>> Dear Lara,
>>
>> For model transformation specific questions and more especially ATL,
>> please use the M2M newsgroup. I've added it to the "to"list.
>>
>> Concerning your question, you should use a called rule.
>> A detailed explanation of "Called Rule" is available in the ATL User
>> Manual (p 43):
>> http://www.eclipse.org/m2m/atl/doc/ATL_User_Manual%5Bv0.7%5D .pdf
>>
>> HTH
>>
>> Regards,
>> Freddy.
>>
>> Lara a écrit :
>>> Hello,
>>>
>>> I´m making a transformation with ATL. My metamodels are uml_1.4.4. I
>>> want to create a new class in my output model without getting any
>>> information from the input model, how can I do it?
>>> Thanks!
>>>
>>
>>
Re: [ATL Transfromation] How to create a new class [message #380557 is a reply to message #380532] Mon, 14 May 2007 12:43 Go to previous message
Matteo Bordin is currently offline Matteo BordinFriend
Messages: 19
Registered: July 2009
Junior Member
This is a multi-part message in MIME format.
--------------040006020707040501050508
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

Dear Lara,

you can generate multiple model element in the "to" section. If this is
not possible I usually use this pattern: a called rule creating a model
element and returning it in the "do" section:

rule createClass(<PARAMETERS>){
to c : UML!Class
do{
--set attributes here
c;
}
}

For example you can invoke the rule in any "do" section (I don't know
the UML1.4 metamodel precisely, but you should get the idea):

[...]
package.ownedMember <-
package.ownedMember->including(thisModule.createClass(<PARAMETERS >));
[...]

Ed Merks wrote:
> Lara,
>
> Please use the GMT newsgroup to ask questions about ATL. I've added it
> to the "to" list so there's no need to repost.
>
>
> Lara wrote:
>> Hello,
>>
>> I
Re: [ATL Transfromation] How to create a new class [message #592452 is a reply to message #380528] Thu, 03 May 2007 15:56 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 26215
Registered: July 2009
Senior Member
Lara,

Please use the GMT newsgroup to ask questions about ATL. I've added it
to the "to" list so there's no need to repost.


Lara wrote:
> Hello,
>
> I´m making a transformation with ATL. My metamodels are uml_1.4.4. I want to
> create a new class in my output model without getting any information from
> the input model, how can I do it?
> Thanks!
>
>
>
Re: [ATL Transfromation] How to create a new class [message #592470 is a reply to message #380528] Thu, 03 May 2007 16:04 Go to previous message
Freddy Allilaire is currently offline Freddy AllilaireFriend
Messages: 130
Registered: July 2009
Senior Member
Dear Lara,

For model transformation specific questions and more especially ATL,
please use the M2M newsgroup. I've added it to the "to"list.

Concerning your question, you should use a called rule.
A detailed explanation of "Called Rule" is available in the ATL User
Manual (p 43):
http://www.eclipse.org/m2m/atl/doc/ATL_User_Manual%5Bv0.7%5D .pdf

HTH

Regards,
Freddy.

Lara a écrit :
> Hello,
>
> I´m making a transformation with ATL. My metamodels are uml_1.4.4. I want to
> create a new class in my output model without getting any information from
> the input model, how can I do it?
> Thanks!
>
>


--
Freddy Allilaire - ATLAS Group (INRIA & LINA)
http://www.sciences.univ-nantes.fr/lina/atl/contrib/allilair e
Re: [ATL Transfromation] How to create a new class [message #592483 is a reply to message #380534] Thu, 03 May 2007 16:17 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 26215
Registered: July 2009
Senior Member
Freddy,

Sorry for forgetting about the new newsgroup...


Freddy Allilaire wrote:
> Dear Lara,
>
> For model transformation specific questions and more especially ATL,
> please use the M2M newsgroup. I've added it to the "to"list.
>
> Concerning your question, you should use a called rule.
> A detailed explanation of "Called Rule" is available in the ATL User
> Manual (p 43):
> http://www.eclipse.org/m2m/atl/doc/ATL_User_Manual%5Bv0.7%5D .pdf
>
> HTH
>
> Regards,
> Freddy.
>
> Lara a écrit :
>> Hello,
>>
>> I´m making a transformation with ATL. My metamodels are uml_1.4.4. I
>> want to create a new class in my output model without getting any
>> information from the input model, how can I do it?
>> Thanks!
>>
>
>
Re: [ATL Transfromation] How to create a new class [message #592498 is a reply to message #380537] Thu, 03 May 2007 20:32 Go to previous message
Eclipse UserFriend
Originally posted by: larsan.terra.es

Thanks!! I'll use this newsgroup, sorry about that!
Lara
Re: [ATL Transfromation] How to create a new class [message #592508 is a reply to message #380537] Thu, 03 May 2007 20:38 Go to previous message
Freddy Allilaire is currently offline Freddy AllilaireFriend
Messages: 130
Registered: July 2009
Senior Member
No problem :-)

Thank you for your great job on Eclipse newsgroups.

Freddy.

Ed Merks a écrit :
> Freddy,
>
> Sorry for forgetting about the new newsgroup...
>
>
> Freddy Allilaire wrote:
>> Dear Lara,
>>
>> For model transformation specific questions and more especially ATL,
>> please use the M2M newsgroup. I've added it to the "to"list.
>>
>> Concerning your question, you should use a called rule.
>> A detailed explanation of "Called Rule" is available in the ATL User
>> Manual (p 43):
>> http://www.eclipse.org/m2m/atl/doc/ATL_User_Manual%5Bv0.7%5D .pdf
>>
>> HTH
>>
>> Regards,
>> Freddy.
>>
>> Lara a écrit :
>>> Hello,
>>>
>>> I´m making a transformation with ATL. My metamodels are uml_1.4.4. I
>>> want to create a new class in my output model without getting any
>>> information from the input model, how can I do it?
>>> Thanks!
>>>
>>
>>
Re: [ATL Transfromation] How to create a new class [message #592584 is a reply to message #380532] Mon, 14 May 2007 12:43 Go to previous message
Matteo Bordin is currently offline Matteo BordinFriend
Messages: 19
Registered: July 2009
Junior Member
This is a multi-part message in MIME format.
--------------040006020707040501050508
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

Dear Lara,

you can generate multiple model element in the "to" section. If this is
not possible I usually use this pattern: a called rule creating a model
element and returning it in the "do" section:

rule createClass(<PARAMETERS>){
to c : UML!Class
do{
--set attributes here
c;
}
}

For example you can invoke the rule in any "do" section (I don't know
the UML1.4 metamodel precisely, but you should get the idea):

[...]
package.ownedMember <-
package.ownedMember->including(thisModule.createClass(<PARAMETERS >));
[...]

Ed Merks wrote:
> Lara,
>
> Please use the GMT newsgroup to ask questions about ATL. I've added it
> to the "to" list so there's no need to repost.
>
>
> Lara wrote:
>> Hello,
>>
>> I
Previous Topic:Saving EObject to namespaceless XML file
Next Topic:[Announce] SysML Component proposal
Goto Forum:
  


Current Time: Sun Nov 23 19:50:37 GMT 2014

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

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