Re: [jade-develop] HOw to specify the order in which the task or behaviours are executed?


Subject: Re: [jade-develop] HOw to specify the order in which the task or behaviours are executed?
From: GuTao (tao_gu@263.net)
Date: Sat Jan 04 2003 - 07:25:34 MET


Hi David.

Since JADE use simple scheduling policy , it's not easy for you to achieve your goal. First you should define a state machine for these two agents. For every state there will be a behaviour. If the adjacent states are in the same agent , you can use FSMBehaviour to contain them.
If in different agents, you can use agent's blockingReceive() methos to get synchronization.( But this is dangerours since it will block for ever)

Regards.
  ----- Original Message -----
  From: David
  To: 'JADE'
  Sent: Saturday, January 04, 2003 1:52 PM
  Subject: [jade-develop] HOw to specify the order in which the task or behaviours are executed?


  Hi all,

   

  In JADE, the scheduling of the task is a non-preemptive round robin nature. Is there any way, I can specify which task or behaviour has to be done first before the next task or behaviour can be executed ?

   

  Lets say I have Agent A has Behaviours 1, 2, 3.

   

  Agent B has Behaviours 4, 5, 6

   

  Is there a way which I can make my agents to execute the task in this following order say

   

  Bevaiours executed in this order : 1,2, 5,4, 6,3 ?

   

  Or even say

   

  Behaviours executed in this order : 1,1,1, 3,5,5,4,6,2,2,1,3 ?

  That is some of the behaviours intended is to executed multiple times in a specific order.

   

  Many thanks for your time and attention.

   

   

  Regards

  David

Hi David.
 
Since JADE use simple scheduling policy , it's not easy for you to achieve your goal. First you should define a state machine for these two agents. For every state there will be a behaviour. If the adjacent states are in the same agent , you can use FSMBehaviour to contain them.
If in different agents, you can use agent's blockingReceive() methos to get synchronization.( But this is dangerours since it will block for ever)
 
Regards.
----- Original Message -----
From: David
To: 'JADE'
Sent: Saturday, January 04, 2003 1:52 PM
Subject: [jade-develop] HOw to specify the order in which the task or behaviours are executed?

Hi all,

 

In JADE, the scheduling of the task is a non-preemptive round robin nature. Is there any way, I can specify which task or behaviour has to be done first before the next task or behaviour can be executed ?

 

Lets say I have Agent A has Behaviours 1, 2, 3.

 

Agent B has Behaviours 4, 5, 6

 

Is there a way which I can make my agents to execute the task in this following order say

 

Bevaiours executed in this order : 1,2, 5,4, 6,3 ?

 

Or even say

 

Behaviours executed in this order : 1,1,1, 3,5,5,4,6,2,2,1,3 ?

That is some of the behaviours intended is to executed multiple times in a specific order.

 

Many thanks for your time and attention.

 

 

Regards

David



This archive was generated by hypermail 2a22 : Sat Jan 04 2003 - 07:24:40 MET