swarm-support
[Top][All Lists]
Advanced

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

dynamically-created swarms


From: Michael Krumpus
Subject: dynamically-created swarms
Date: Sat, 20 Nov 1999 14:47:51 -0600 (CST)

Hello,

I'm having problems getting multi-level activation to work for me when
using dynamically-created swarms.  My model has several layers of hierarchical
swarms that are arranged like this:

ObserverSwarm -> ModelSwarm -> Population(s) -> Agent(s)

That is, the ModelSwarm is activated in the ObserverSwarm (as usual), the
Population swarm(s) are activated in the ModelSwarm, and the Agent swarm(s)
are activated in their respective populations.  Note that Agents are themselves
full-blown Swarms, and not SwarmObjects.

In my simulation, Agents die and are born dynamically.  When I dynamically
create a new Agent, I call [agent buildActions] to build its schedule, and
then call [agent activateIn: population].  But, the agent never executes.
This is precisely how I activate the initial population of agents and they
run fine, but agents created and activated after the simulation has started
don't ever run.  Upon return from activateIn, their status is "Completed"
instead of "Initialized".  What am I doing wrong here?  Do I have to
explicitly do something so that the new Agent's schedule is merged up into
the master schedule?

Thanks in advance.
p.s. I'm still on Swarm 1.4.1 on RedHat 6.0.

-Michael Krumpus



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