|
From: Nick C. <nic...@ve...> - 2002-09-20 16:04:26
|
Hi again, Do you mean that when you load a network from a file into a list of nodes, the order of the nodes in the list is not predictable. This is easy enough to fix, either by using a LinkedHashMap or sorting your nodes once you have them in the list according to node id. Nick On Fri, 2002-09-20 at 11:39, Nick Collier wrote: > Hi, > > On Fri, 2002-09-20 at 11:24, Laszlo Gulyas wrote: > > It is funny how long this went unnoticed [or at least, I've never heard of > > it]. > > Then, it's even funnier that within a week I came across three distinct > > examples. > > One using the network library, the other working with multiple occupancy > > spaces. The last one was in my own code, so I had no choice, but to nail > > it down... ;-) > > > > I can see how this would be a problem in if you used a HashMap / HashSet > in your model and expected to be able reproduce the order of in which > items are stored in the Map. However, I'm unclear about how this effects > the network lib and multiple occupancy space. Can you explain further? > There is a comment in the unordered Multiple occupancy space docs to the > effect that the order of objects in a single cell is undefined; the > implication being that you can't rely on the order. > > thanks for the bug reports, > > Nick > > -- > Nick Collier > Social Science Research Computing > University of Chicago > http://repast.sourceforge.net > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Repast-developer mailing list > Rep...@li... > https://lists.sourceforge.net/lists/listinfo/repast-developer -- Nick Collier Social Science Research Computing University of Chicago http://repast.sourceforge.net |