Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] Duplicates in my list
[ATL] Duplicates in my list [message #72858] Mon, 21 January 2008 06:43 Go to next message
Eclipse UserFriend
Originally posted by: irbull.cs.uvic.ca

I have a very strange ATL problem that I can't seem to get to the bottom
of. I have the following simple transformation:

I have a pretty large model (almost 40,000 EObjects) that represents a
bunch of hockey statistics.

For each player in the list, there is a list of player stats. Now the
problem comes when I say

p.yearlyStats

which should return all the stats for that player.

For a single player (let's say Wayne Gretzky in this case), I am getting
duplicate entries in the list. Actually, the size of the list is 40 (he
only played 20 years), and it looks like the stats have been appended
back-to-back in the list. When I load the model using the generated EMF
editor, there is only 20 years worth of stats (list length 20), so I am
pretty sure my data is ok.

I used the ATL debugger, and it also showed this. There is a bunch of
object in the list as follows:

[132,133,134,135,....151,132,133,134,....151]

So the same objects appear twice.

Any ideas why ATL would be loading the data twice? Is there any chance
that it has to do with proxies? Is there any pointers into the ATL VM
that I can throw a few breakpoints to see where the list is being loaded.

Cheers,
Ian
Re: [ATL] Duplicates in my list [message #72879 is a reply to message #72858] Mon, 21 January 2008 08:05 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: irbull.cs.uvic.ca

I have spent a good chunk of the day tracking this down, and it seems to
be related to the Dynamic EMF load options that ATL uses. I have posted
a question on the EMF newsgroup, and I will post an update here when I
hear back.

cheers,
ian

Ian Bull wrote:
> I have a very strange ATL problem that I can't seem to get to the bottom
> of. I have the following simple transformation:
>
> I have a pretty large model (almost 40,000 EObjects) that represents a
> bunch of hockey statistics.
>
> For each player in the list, there is a list of player stats. Now the
> problem comes when I say
>
> p.yearlyStats
>
> which should return all the stats for that player.
>
> For a single player (let's say Wayne Gretzky in this case), I am getting
> duplicate entries in the list. Actually, the size of the list is 40 (he
> only played 20 years), and it looks like the stats have been appended
> back-to-back in the list. When I load the model using the generated EMF
> editor, there is only 20 years worth of stats (list length 20), so I am
> pretty sure my data is ok.
>
> I used the ATL debugger, and it also showed this. There is a bunch of
> object in the list as follows:
>
> [132,133,134,135,....151,132,133,134,....151]
>
> So the same objects appear twice.
>
> Any ideas why ATL would be loading the data twice? Is there any chance
> that it has to do with proxies? Is there any pointers into the ATL VM
> that I can throw a few breakpoints to see where the list is being loaded.
>
> Cheers,
> Ian
>
Re: [ATL] Duplicates in my list [message #73083 is a reply to message #72879] Tue, 22 January 2008 22:27 Go to previous message
Eclipse UserFriend
Originally posted by: irbull.cs.uvic.ca

Just an update.

This seems to be a problem that was happening in EMF 2.3 but has since
been fixed.

cheers,
ian

Ian Bull wrote:
> I have spent a good chunk of the day tracking this down, and it seems to
> be related to the Dynamic EMF load options that ATL uses. I have posted
> a question on the EMF newsgroup, and I will post an update here when I
> hear back.
>
> cheers,
> ian
>
> Ian Bull wrote:
>> I have a very strange ATL problem that I can't seem to get to the
>> bottom of. I have the following simple transformation:
>>
>> I have a pretty large model (almost 40,000 EObjects) that represents a
>> bunch of hockey statistics.
>>
>> For each player in the list, there is a list of player stats. Now the
>> problem comes when I say
>>
>> p.yearlyStats
>>
>> which should return all the stats for that player.
>>
>> For a single player (let's say Wayne Gretzky in this case), I am
>> getting duplicate entries in the list. Actually, the size of the list
>> is 40 (he only played 20 years), and it looks like the stats have been
>> appended back-to-back in the list. When I load the model using the
>> generated EMF editor, there is only 20 years worth of stats (list
>> length 20), so I am pretty sure my data is ok.
>>
>> I used the ATL debugger, and it also showed this. There is a bunch
>> of object in the list as follows:
>>
>> [132,133,134,135,....151,132,133,134,....151]
>>
>> So the same objects appear twice.
>>
>> Any ideas why ATL would be loading the data twice? Is there any
>> chance that it has to do with proxies? Is there any pointers into the
>> ATL VM that I can throw a few breakpoints to see where the list is
>> being loaded.
>>
>> Cheers,
>> Ian
>>
Previous Topic:[ATL] Difference between IBM MTF and ATL
Next Topic:Problem with transformation DSM2UML
Goto Forum:
  


Current Time: Sun Apr 11 21:06:01 GMT 2021

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

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

Back to the top