|
From: | Paul Johnson |
Subject: | Re: [Swarm-Support] Multiple Agents in One Cell |
Date: | Tue, 30 Aug 2005 01:09:03 -0500 |
User-agent: | Mozilla Thunderbird 1.0.6-1.1.fc4 (X11/20050720) |
So its kindof a mystery to me that somebody would even use Multi2d as a starting point.
But it is more a mystery why one would try to re-invent the multi occupancy grid after I worked out all the kinks and documented the details in the MultiGrid2d and MultiGridCell classes. It is a general purpose, relatively well documented thing that I've used in several projects.
pj Ken Cline wrote:
I would be careful with that code. The implementation of 'putObject' and 'putValue' in MultiDiscrete2d class is flawed. It assumes that the only way a List object could be found at (x,y) is if it was created by an earlier calls to those 'put' methods. This is an invalid assumption. The user could have passed in a List as an argument. (In fact, when you first posted your problem I thought that maybe you were using that code already. But then I noticed that you said you were using Paul Johnson implementation.) Ken --- Crile Doscher <address@hidden> wrote:
-- Paul E. Johnson email: address@hidden Dept. of Political Science http://lark.cc.ku.edu/~pauljohn 1541 Lilac Lane, Rm 504 University of Kansas Office: (785) 864-9086 Lawrence, Kansas 66044-3177 FAX: (785) 864-5700
[Prev in Thread] | Current Thread | [Next in Thread] |