swarm-support
[Top][All Lists]
Advanced

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

Re: [Swarm-Support] model


From: Paul Johnson
Subject: Re: [Swarm-Support] model
Date: Fri, 31 Aug 2007 09:34:50 -0500
User-agent: Thunderbird 2.0.0.5 (X11/20070719)

yuefengch wrote:
>  
>  
> hello,
>   I want to define a double environment,then put agent into its grid. I want 
> to know whether Swarm support my idea?
>   The program following:
>    double x,y;
>   [agent put self atX:x atY:y]; 

No, the Grid classes support integers.  I think I've mentioned to you
before that you can create a very fine grid, say 1000x1000, and then put
agents into integer values on that grid.  It is necessary to convert x
and y to integers.

-- 
Paul E. Johnson                       email: address@hidden
Dept. of Political Science            http://pj.freefaculty.org
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]