swarm-support
[Top][All Lists]
Advanced

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

Re: Q: problem with schedulling


From: Paul E. Johnson
Subject: Re: Q: problem with schedulling
Date: Fri, 29 Jun 2001 13:54:40 -0500

Isis GIRALDO wrote:

> Hi there!
>
> I'm a new user of the Swarm libraries. I have been writing a program in
> java using Swarm and have a problem with the schedulling. I have a List
> of agents which is created in my ModelSwarm. In the method step of my
> agent class  I create new agents and remove others (the actual removing
> and birth is done in the model). When I run the program the schedule
> continues working with the same initial population, and
> never allows the old agents to disappear or the new agents to run. What
> can I do?
>
> Thank you very much,,
>
> Isis

I don't know what the problem might be. Usually, you keep your agents in a
list, and when you kill some, you delete them  from the list,  and you
birth some new ones and add them to the list.  As long as your scheduling
is correct, and it causes the whole list to be processed, then the
simulation should take into account the new players.  Are you sure your
scheduling is sweeping through the list?
pj


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