|
Re: [ATL] delete et refining [message #100212 is a reply to message #100143] |
Wed, 18 February 2009 13:15 |
William Piers Messages: 301 Registered: July 2009 |
Senior Member |
|
|
Hello,
Answers below:
Laurent SABATIER a écrit :
> Hello,
>
> I try to transform one uml metaclass in other uml metaclass, I work with
> the ATL 3 on eclipse 3.5
>
> ATL refining mode is it capable to do this transformation, or in
> refining mode we can just modify some attribute of existant metaclass,
You can modify existing instances, but also add new elements. For
instance, this rule creates a new Interface next to each Class:
rule Class {
from
input : UML!Class
to
refined : UML!Class (
name <- input.name
),
added : UML!Interface(
package <- input.package,
name <- 'I' + input.name
)
}
> and also add other metaclass (like atl example in zoo Public to Private
> transformation)
Note that there is a more recent version of this example, directly
available in the New->example->atl wizard.
>
> And can we delete instances in refining mode ?
At this time we can't, you'll have to redefine your transformation in
the standard mode to do that.
Best regards,
William
>
> thank
|
|
|
Re: [ATL] delete et refining [message #100225 is a reply to message #100212] |
Wed, 18 February 2009 13:25 |
sabatier Messages: 14 Registered: July 2009 |
Junior Member |
|
|
Hello,
My goal is this for example :
rule Class {
from
input : UML!Class
to
refined : UML!Component (
name <- input.name
)
}
William Piers a écrit :
> Hello,
>
> Answers below:
>
> Laurent SABATIER a écrit :
>> Hello,
>>
>> I try to transform one uml metaclass in other uml metaclass, I work
>> with the ATL 3 on eclipse 3.5
>>
>> ATL refining mode is it capable to do this transformation, or in
>> refining mode we can just modify some attribute of existant metaclass,
>
> You can modify existing instances, but also add new elements. For
> instance, this rule creates a new Interface next to each Class:
>
> rule Class {
> from
> input : UML!Class
> to
> refined : UML!Class (
> name <- input.name
> ),
> added : UML!Interface(
> package <- input.package,
> name <- 'I' + input.name
> )
> }
>
>> and also add other metaclass (like atl example in zoo Public to
>> Private transformation)
>
> Note that there is a more recent version of this example, directly
> available in the New->example->atl wizard.
>
>>
>> And can we delete instances in refining mode ?
>
> At this time we can't, you'll have to redefine your transformation in
> the standard mode to do that.
>
> Best regards,
>
> William
>
>>
>> thank
|
|
|
Re: [ATL] delete et refining [message #100238 is a reply to message #100225] |
Wed, 18 February 2009 14:03 |
William Piers Messages: 301 Registered: July 2009 |
Senior Member |
|
|
The example you give implies the deletion of the input Class, so it is
not possible with the current refining mode.
Laurent SABATIER a écrit :
> Hello,
>
> My goal is this for example :
>
> rule Class {
> from
> input : UML!Class
> to
> refined : UML!Component (
> name <- input.name
> )
> }
>
>
>
> William Piers a écrit :
>> Hello,
>>
>> Answers below:
>>
>> Laurent SABATIER a écrit :
>>> Hello,
>>>
>>> I try to transform one uml metaclass in other uml metaclass, I work
>>> with the ATL 3 on eclipse 3.5
>>>
>>> ATL refining mode is it capable to do this transformation, or in
>>> refining mode we can just modify some attribute of existant metaclass,
>>
>> You can modify existing instances, but also add new elements. For
>> instance, this rule creates a new Interface next to each Class:
>>
>> rule Class {
>> from
>> input : UML!Class
>> to
>> refined : UML!Class (
>> name <- input.name
>> ),
>> added : UML!Interface(
>> package <- input.package,
>> name <- 'I' + input.name
>> )
>> }
>>
>>> and also add other metaclass (like atl example in zoo Public to
>>> Private transformation)
>>
>> Note that there is a more recent version of this example, directly
>> available in the New->example->atl wizard.
>>
>>>
>>> And can we delete instances in refining mode ?
>>
>> At this time we can't, you'll have to redefine your transformation in
>> the standard mode to do that.
>>
>> Best regards,
>>
>> William
>>
>>>
>>> thank
|
|
|
|
Powered by
FUDForum. Page generated in 0.02568 seconds