|
|
|
|
|
|
Re: [ATL Transfromation] How to create a new class [message #380557 is a reply to message #380532] |
Mon, 14 May 2007 08:43  |
Eclipse User |
|
|
|
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 11:56  |
Eclipse User |
|
|
|
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 #592483 is a reply to message #380534] |
Thu, 03 May 2007 12:17  |
Eclipse User |
|
|
|
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 #592508 is a reply to message #380537] |
Thu, 03 May 2007 16:38  |
Eclipse User |
|
|
|
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 08:43  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.06971 seconds