swarm-support
[Top][All Lists]
Advanced

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

Re: Remove event from a schedule


From: Olivier Jauze
Subject: Re: Remove event from a schedule
Date: Thu, 02 Aug 2001 09:54:51 +0200

At 08:11 01/08/01 -0600, you wrote:
>>>>> "OJ" == Olivier Jauze <address@hidden> writes:

OJ> But I have a problem : I make an index on this schedule and then I
OJ> traverse the index to look at actions of this agent.

How about creating a list in the agent that tracks the Actions created
on behalf of the agent, and then iterate through that to remove the Actions?
(It would hold the return values of createActionTo:message:.)

Would it be possible to restructure your model so that each agent had
its own Schedule?

Hi,
I choose your first solution and it seems to work.
I did not notice that the methode remove of the Schedule class, return nil if the Objet passed in parameter did not exist. So I do not have to test if an action has been executed, I just have to remove it from the schedule, I do not care if nil is return.
Thanks very much, have a good day.

Olivier JAUZE
INRA unité URH équipe SP
Centre de Theix

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