Subject: RE: [jade-develop] Time schedule in Agent setup() or behaviour;
From: Spanoudakis Nikos (nspan@si.gr)
Date: Mon Feb 17 2003 - 11:19:26 MET
Hi Vadim,
You can use the jade.core.behaviours.WakerBaheviour, whose specific method
-handleElapsedTimeout()- executes "only one just after a given timeout is
elapsed" as its documentation states.
Hope I've helped,
Nikos
-----Original Message-----
From: Vadim K. [mailto:mogikan@pisem.net]
Sent: Sunday, February 16, 2003 6:49 PM
To: JADE
Subject: [jade-develop] Time schedule in Agent setup() or behaviour;
Hello JADER's
In my Agent I need to send different messages in certain time after
agent has born. Now I'm using for(i,i<x,i++) cycle with Tread.sleep(msec) in
agent's setup() procedure. But I think it is rather "robust" way of doing
such a thing. I want to create a behaviour without action receive and put
the timer there, but I don't know if it give the same result and whether
sleep (1000) for example will be equal to 1sec, when I have 10 agents, with
10 behaviours or more? Or will the time be divided between agents?
Appreciate your help.
Regards,
Vadim K.
-----Original Message-----
From: Vadim K. [mailto:mogikan@pisem.net]
Sent: Sunday, February 16, 2003 6:49 PM
To: JADE
Subject: [jade-develop] Time schedule in Agent setup() or behaviour;Hello JADER'sIn my Agent I need to send different messages in certain time after agent has born. Now I'm using for(i,i<x,i++) cycle with Tread.sleep(msec) in agent's setup() procedure. But I think it is rather "robust" way of doing such a thing. I want to create a behaviour without action receive and put the timer there, but I don't know if it give the same result and whether sleep (1000) for example will be equal to 1sec, when I have 10 agents, with 10 behaviours or more? Or will the time be divided between agents?Appreciate your help.Regards,Vadim K.
This archive was generated by hypermail 2a22 : Mon Feb 17 2003 - 11:16:50 MET