[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Conditional Scheduler
From: |
Nicolas Garrido |
Subject: |
Conditional Scheduler |
Date: |
Sat, 04 May 2002 09:32:50 -0500 |
Hi!,
I am working with an array of agents and in each period of time a random
proportion of them have to do something according.
I solved it simply sending a message from my Scheduler to ModelSwarm object and
in ModelSwarm the method look like,
- (void) myMethod (){
for (each individual i in the array)
if (randomNumber < proportion)
(individual i do something)
}
I wonder if is there a more elegant way of doing the same job using simply the
Scheduler.
Thanks in advance
Nico.
--
_______________________________________________
Sign-up for your own FREE Personalized E-mail at Email.com
http://www.email.com/?sr=signup
==================================
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.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Conditional Scheduler,
Nicolas Garrido <=