swarm-support
[Top][All Lists]
Advanced

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

Re: Drop doesn't work after createBegin:,createEnd:


From: Benedikt Stefansson
Subject: Re: Drop doesn't work after createBegin:,createEnd:
Date: Sun, 01 Feb 1998 17:00:09 -0800

Hi Rick,

Thanks a lot for having a look at the -drop problem I described. From your
example I was able to figure out what I was doing wrong.

As usual the solution turned out to be very simple. Your bugs (and most of the
agents in the demo apps as far as I  can see) are subclassed from SwarmObject,
while the Firm class that I had written was a subclass from Swarm. After
changing the interface to subclass Firm from SwarmObject, the -drop works as
advertised.

I guess this was silly of me, I was under the impression that Swarm was
subclassed from SwarmObject through the Activity library - but they live on
different branches and thus Swarm - as a subclass of CSwarmProcess - does not
inherit all of the methods of  the base class.

An implication of this is (I think) is that a subswarm - be it single agent or
swarm of agents - which needs to run a series of schedules - should be created
with create: instead of createBegin:,createEnd, in case you need to -drop it.
Look at the example in Langton's tutorial - simpleExperBug - where each
ModelSwarm is created by create: and dropped (actually the whole Zone it is in
is dropped, but that is another story).

Which brings me to your other e-mail to the list today, I'd like to second
that an index to the documentation is sorely needed - and some attempt should
be made to whip the material that already exists in the docs into a shape that
looks more like a manual. There is a lot of information in there, the problem
is just to find it...

Regards,
-Benedikt
------------------
Benedikt Stefansson                 address@hidden
Department of Economics, UCLA       Fax. (310) 825-9528
Los Angeles, CA 90095-1477          Tel. (310) 825-4126



                  ==================================
   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.
                  ==================================


reply via email to

[Prev in Thread] Current Thread [Next in Thread]