[ATL] Problems with allInstancesFrom() [message #107822] |
Sat, 04 July 2009 12:59 |
Eclipse User |
|
|
|
Originally posted by: mschneider.uni-koblenz.de
Hello everyone,
I'm kinda new to ATL so please bear with me, if it's a simple problem :)
I'm currently running ATL 2.0.2 and encountered this problem.
My input model is UML and I'm trying to gather all UML!Generalization
for further transformation. Since I need to do so twice I use the
following code with 2 different rules and for testing issues print out
all specific classes:
UML!Generalization.allInstancesFrom('IN')->collect(e|e.specific).toString();
The problem, from the first rule I get 2 specific classes, from the
second rule none.
How is this even possible? Because I thought ATL is only transforming
the input model and not also editing or removing parts of it.
Any kind of help will be highly appreciated.
With kind regards,
Mark Schneider
|
|
|
Re: [ATL] Problems with allInstancesFrom() [message #108086 is a reply to message #107822] |
Wed, 08 July 2009 19:54 |
Eclipse User |
|
|
|
Originally posted by: mschneider.uni-koblenz.de
Hi again,
I'm still pretty stuck. Really no one has any idea?
Thanks for any help.
Regards,
Mark
Mark Schneider schrieb:
> Hello everyone,
>
> I'm kinda new to ATL so please bear with me, if it's a simple problem :)
>
> I'm currently running ATL 2.0.2 and encountered this problem.
>
>
> My input model is UML and I'm trying to gather all UML!Generalization
> for further transformation. Since I need to do so twice I use the
> following code with 2 different rules and for testing issues print out
> all specific classes:
>
>
> UML!Generalization.allInstancesFrom('IN')->collect(e|e.specific).toString();
>
>
>
> The problem, from the first rule I get 2 specific classes, from the
> second rule none.
>
> How is this even possible? Because I thought ATL is only transforming
> the input model and not also editing or removing parts of it.
>
>
> Any kind of help will be highly appreciated.
>
>
> With kind regards,
> Mark Schneider
|
|
|
Re: [ATL] Problems with allInstancesFrom() [message #108475 is a reply to message #108086] |
Mon, 20 July 2009 08:59 |
William Piers Messages: 303 Registered: July 2009 |
Senior Member |
|
|
Hello,
Could you please try to test the same transformation using the latest
ATL version (3.0.0) ?
Thanks in advance,
William
Mark Schneider a écrit :
> Hi again,
>
> I'm still pretty stuck. Really no one has any idea?
>
> Thanks for any help.
>
> Regards,
> Mark
>
> Mark Schneider schrieb:
>> Hello everyone,
>>
>> I'm kinda new to ATL so please bear with me, if it's a simple problem :)
>>
>> I'm currently running ATL 2.0.2 and encountered this problem.
>>
>>
>> My input model is UML and I'm trying to gather all UML!Generalization
>> for further transformation. Since I need to do so twice I use the
>> following code with 2 different rules and for testing issues print out
>> all specific classes:
>>
>>
>> UML!Generalization.allInstancesFrom('IN')->collect(e|e.specific).toString();
>>
>>
>>
>> The problem, from the first rule I get 2 specific classes, from the
>> second rule none.
>>
>> How is this even possible? Because I thought ATL is only transforming
>> the input model and not also editing or removing parts of it.
>>
>>
>> Any kind of help will be highly appreciated.
>>
>>
>> With kind regards,
>> Mark Schneider
|
|
|
Re: [ATL] Problems with allInstancesFrom() [message #108604 is a reply to message #108475] |
Thu, 23 July 2009 10:38 |
Eclipse User |
|
|
|
Originally posted by: mschneider.uni-koblenz.de
Hello William,
since there was no help for quite a while I managed to work around that
problem regarding my transformation. Nevertheless I was curious if the
problem still remains in ATL 3.0.0 and I can gladly tell, that it got
solved with the version upgrade. Thanks anyway for your help!
Regards,
Mark
William Piers schrieb:
> Hello,
>
> Could you please try to test the same transformation using the latest
> ATL version (3.0.0) ?
>
> Thanks in advance,
>
> William
>
> Mark Schneider a écrit :
>> Hi again,
>>
>> I'm still pretty stuck. Really no one has any idea?
>>
>> Thanks for any help.
>>
>> Regards,
>> Mark
>>
>> Mark Schneider schrieb:
>>> Hello everyone,
>>>
>>> I'm kinda new to ATL so please bear with me, if it's a simple problem :)
>>>
>>> I'm currently running ATL 2.0.2 and encountered this problem.
>>>
>>>
>>> My input model is UML and I'm trying to gather all UML!Generalization
>>> for further transformation. Since I need to do so twice I use the
>>> following code with 2 different rules and for testing issues print
>>> out all specific classes:
>>>
>>>
>>> UML!Generalization.allInstancesFrom('IN')->collect(e|e.specific).toString();
>>>
>>>
>>>
>>> The problem, from the first rule I get 2 specific classes, from the
>>> second rule none.
>>>
>>> How is this even possible? Because I thought ATL is only transforming
>>> the input model and not also editing or removing parts of it.
>>>
>>>
>>> Any kind of help will be highly appreciated.
>>>
>>>
>>> With kind regards,
>>> Mark Schneider
|
|
|
Powered by
FUDForum. Page generated in 0.03475 seconds