[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Grid2D and Notice
From: |
Marcus G. Daniels |
Subject: |
Re: Grid2D and Notice |
Date: |
11 Dec 2000 22:30:02 -0800 |
User-agent: |
Gnus/5.070084 (Pterodactyl Gnus v0.84) Emacs/20.4 |
>>>>> "DA" == David Aliaga <address@hidden> writes:
DA> Do I have to keep a separate array of the positions of evey agent
DA> so I can have "iX" and "iY" or is there a way I can use the Grid2D
DA> structure directly. Or in another words, How can I pass a message
DA> to all the agents stored in the Grid2D or find them (of course the
DA> option of traversing all the Grid asking [getObject...] to each
DA> position is not considered.
Nothing built-in, really. You might subclass Grid2d with an extra
objectCollection ivar, along the lines of what Object2dDisplay does.
If you override the -putObject:atX:Y: you can keep the new collection
you make in sync with the lattice, and use the Collection forEach: methods
to do the iteration.
==================================
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.
- Grid2D and Notice, David Aliaga, 2000/12/12
- Re: Grid2D and Notice,
Marcus G. Daniels <=
- Re: Grid2D and Notice, Marcus G. Daniels, 2000/12/12
- Scheduling with a schedule, Fred Wan, 2000/12/14
- Re: Scheduling with a schedule, Marcus G. Daniels, 2000/12/14
- RE: Scheduling with a schedule, Fred Wan, 2000/12/14
- Re: Scheduling with a schedule, Marcus G. Daniels, 2000/12/14
- Re: Scheduling with a schedule, Doug Donalson, 2000/12/14
- RE: Scheduling with a schedule, Fred Wan, 2000/12/14
- TestGUISwarm, Fred Wan, 2000/12/19
- RE: TestGUISwarm, Fred Wan, 2000/12/19
- Re: TestGUISwarm, Marcus G. Daniels, 2000/12/19