Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] Problems with allInstancesFrom()
[ATL] Problems with allInstancesFrom() [message #107822] Sat, 04 July 2009 12:59 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
William Piers is currently offline William PiersFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:[ATL] stack overflow from simple script
Next Topic:[ATL]org.eclipse.emf.ecore.xmi.PackageNotFoundException:
Goto Forum:
  


Current Time: Wed Feb 05 17:57:27 GMT 2025

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

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

Back to the top