swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Swarm-Support] Re: Re: Several agents in one 2d cell?


From: Paul Johnson
Subject: Re: [Swarm-Support] Re: Re: Several agents in one 2d cell?
Date: Sat, 17 Apr 2004 20:21:12 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031202

Sven T wrote a class for multi agents and I've worked on extensions over the years. His file is in the Swarm ftp called, I think, SvenSpaces, or perhaps MoGrid2d. I became infatuated with the possibilities of having the "things" in the grid not only hold agents, but also do other useful "environmental" measurements. If you look in my Swarm page (address below), look in the MySwarmCode directory for the Opinion project. Look for version 2.0. That shows the MultiGrid2d class in action. MultiGrid2d is a Swarm grid that is filled up with those special "things", containers plus. The default "thing" is MultiGridCell, but I have sometimes tried to speed this up by using an AVL (threaded binary search tree) to make it faster.

Jurgen van der Pol wrote:

Create an object and call is (if you want) a spatial cell. Now an object


Gotcha, yes, this should do the trick! Thanks! Challenge for me to put it into code...

A list is I believe dynamic, right? So I can add objects to a list ad infinitum. Just what I need.

Thanks,
Jurgen.



--
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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]