|
From: Tatara, E. R. <ta...@an...> - 2009-07-07 22:29:43
|
Thanks John, that's an excellent point. We'll be sure to fix it! eric Eric Tatara, Ph.D. Assistant Software Engineer Center for Complex Adaptive Agent Systems Simulation Decision and Information Sciences Division Argonne National Laboratory -----Original Message----- From: John Tranier [mailto:tr...@cs...] Sent: Monday, July 06, 2009 5:47 AM To: rep...@li... Subject: [Repast-interest] Suggestion to prevent wrong use of addProjection() Hi, I didn't realize that the GridFactory not only create the Grid but also add it to the context. And so I was wrong using a context.addProjection(grid) after having created a grid through the factory. The result of this operation was that every object added to the context was added 2 times into the grid (at different positions), and of course that led to unexpected behaviors ... Having spent a couple of hours of debbuging to find out my mistake, I think it would be nice (for those that can go through the same mistake, I won't do it again ;-)) to raise an exception when adding a projection which has the same name than an existing one. John ------------------------------------------------------------------------ ------ _______________________________________________ Repast-interest mailing list Rep...@li... https://lists.sourceforge.net/lists/listinfo/repast-interest |