[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Swarm-Support] Re: Alternative to grid based agent worlds (java exa
From: |
Doug Donalson |
Subject: |
Re: [Swarm-Support] Re: Alternative to grid based agent worlds (java examples) |
Date: |
Wed, 28 May 2003 05:29:52 -0700 |
It is not very hard to implement a spatially continuous model in swarm. You
just need to think slightly outside the lines, so to speak. You can
actually do it two ways.
The first is to just use a single cell. Grid cells are nothing more than
place holders for ID's. If you create a spatial object, you can put that
object's ID in the grid cell. That object can have any sort of
characteristics you want, such as X and Y dimensions and a list of all the
agents in that world. I believe you can use "object2dDisplay" to display
continuous space results.
Perhaps a better approach is to use a grid in conjunction with continuous
space. In this case you have a "space" object for each cell that includes,
among other things, a list of all agents in that cell. That list is defined
as all agents (of a particular type) who's X,Y coordinates actually reside
within space delineated by that cell on the spatial map. For example, and
agent at location X=5.67 Y=20.09 would be in the list of cell[5][20]. This
has a nice advantage in that if an individual needs information about it's
neighbors, it doesn't been to search the whole system space, just the lists
of the neighboring cells. Again, I believe that object2dDisplay allows
non-grid based displays. I used this approach in a past swarm model that is
now translated into C++ and it works quite well.
Cheers,
D4
----- Original Message -----
From: "Marshall, James A R" <address@hidden>
To: <address@hidden>
Sent: Wednesday, May 28, 2003 2:29 AM
Subject: RE: [Swarm-Support] Re: Alternative to grid based agent worlds
(java examples)
> Kana,
> that depends what you mean by free moving; if you're interested in
non-CA
> models which still use grids then I'll give some of my work yet another
> shameless plug and direct you the the Evolutionary Prisoner's Dilemma
model
> at:
> ftp://ftp.swarm.org/pub/swarm/apps/objc/contrib/EPD-2.1.1-2.1.1.tar.gz
> which is not to say there aren't other examples. If you're looking for
> models with agents inhabiting and interacting in a more realistic
continuous
> space then I'm not aware of any Swarm apps but someone else here might be,
> James
>
> ---
> Dr James A R Marshall
> Complex Systems Modelling Group (COSMIC)
> Department of Earth Science and Engineering
> Imperial College London
> Tel: +44 (0)20 7594 7493
> Fax: +44 (0)20 7594 7444
> Container World Project - http://www.ese.ic.ac.uk/research/containerworld/
>
>
>
> -----Original Message-----
> From: Kanagaraj Krishna [mailto:address@hidden
> Sent: 28 May 2003 08:50
> To: address@hidden
> Subject: [Swarm-Support] Re: Alternative to grid based agent worlds
> (java examples)
>
>
> Hi,
> Most of the examples of SWARM (java) are based on the grid method of
> modelling its world. Are there any other examples that uses different kind
> of methods (free moving agents meeting each other .......etc). Thanks.
>
> Kana
>
>
> ____________________________________________________________
> Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail!
> http://login.mail.lycos.com/r/referral?aid=27005
> _______________________________________________
> Support mailing list
> address@hidden
> http://www.swarm.org/mailman/listinfo/support
> _______________________________________________
> Support mailing list
> address@hidden
> http://www.swarm.org/mailman/listinfo/support