[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Questions
From: |
pauljohn |
Subject: |
Re: Questions |
Date: |
Wed, 22 Aug 2001 08:09:17 -0500 |
Holger Perlt wrote:
>
> - buildAction
> {
> *****************
>
> [displayActions createActionTo: bugDisplay message: M(display)];
>
> // should I add the line [displayActions createActionTo: bugDisplay1
> message: M(display)]; ????
>
> ********************
> }
>
> I know that my code is very in efficient - but I would like to extend
> the methods and ... step by step.
> Could you comment my attempts?
>
> Holger
If this code works, it looks OK to me. I have run into this
problem before, and I think your solution is a pretty good way
to go about it.I have done it other ways, none of them
completely satisfying.
Rick Riolo at U. Mich. did an Axelrod culture model called
Axelcult, I think you can still get it online at his web site.
In there, his observer has a big method that writes directly on
the raster, rather than having the agents do it with a
drawSelfOn: method. His method is something like "drawColor:
(int) x AtX: (unsigned)x Y: (unsigned)y; Then when an agent
takes a step and needs to change the grid, he tells the observer
to use that method. Following that idea, I've got one model
where there is an array of grids, and the draw method takes an
argument to say which raster.
--
Paul E. Johnson email: address@hidden
Dept. of Political Science
http://lark.cc.ukans.edu/~pauljohn
University of Kansas Office: (785) 864-9086
Lawrence, Kansas 66045 FAX: (785) 864-5700
==================================
Swarm-Support is for discussion of the technical details of the day
to day usage of Swarm. For list administration needs (esp.
[un]subscribing), please send a message to <address@hidden>
with "help" in the body of the message.
- setFileOutput (java), Myriam Abramson, 2001/08/21
- Re: setFileOutput (java), Russell Bryer, 2001/08/21
- Re: Questions,
pauljohn <=
- Using the Array type, Holger Perlt, 2001/08/28
- Re: Using the Array type, pauljohn, 2001/08/28
- Running on RedHat beta (roswell), jones . peter, 2001/08/28
- display problems, Holger Perlt, 2001/08/31
- Re: display problems, Marcus G. Daniels, 2001/08/31
- Re: Using the Array type, Marcus G. Daniels, 2001/08/28