[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: using getObjectAtX$Y with a createFActionForEachHeterogeneous$call
From: |
Marcus G. Daniels |
Subject: |
Re: using getObjectAtX$Y with a createFActionForEachHeterogeneous$call |
Date: |
05 Jul 2001 22:25:04 -0600 |
User-agent: |
Gnus/5.070084 (Pterodactyl Gnus v0.84) Emacs/20.7 |
>>>>> "IG" == Isis GIRALDO <address@hidden> writes:
[took another look at this -- I did see crashes after running it a bit longer,
even after ensuring the ranges were correct...]
IG> For me the problem seems to be in the use of the getObjectAtX$Y
IG> method and the createFActionForEachHeterogeneous$call.
The cause of this is the fact that SocialAgent inherits from
SwarmObjectImpl, but does not call the Swarm constructor, i.e. the one
with a Zone argument.
I suggest _not_ inheriting from SwarmObjectImpl, but just have SocialAgent
be an ordinary Java class (don't inherit from anything). Then go into
killAgents and remove the `drop'.
Finally, there's a bug in SocialAgent on about line 691 in
checkNeighbourhood. You sample up to size, but it should really be
size - 1.
==================================
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.