RE: [jade-develop] Behaviour scheduling in an multi-agent system


Subject: RE: [jade-develop] Behaviour scheduling in an multi-agent system
From: Caire Giovanni (Giovanni.Caire@TILAB.COM)
Date: Tue Dec 03 2002 - 09:49:45 MET


Hi,
 
You are allowed to create new agents from within another agent. I'm afraid but there should be something wrong with your code.
Is the setup() method of B and C executed? Does it return?
 
Bye
 
Giovanni
 
 
-----Original Message-----
From: David [mailto:amdawong@starhub.net.sg]
Sent: marted́ 3 dicembre 2002 7.37
To: JADE
Subject: [jade-develop] Behaviour scheduling in an multi-agent system

Hi Jaders,
 
It says in the programmer's guide that the behaviours added to an agent are scheduled in a round robin manner.
 
I have an question: What if I have one main agent A creating several other agents say agent B and agent C.
 
Agent B and C are created in agent A via the creatNewAgent(.....) method (in Agent A itself).
Agent B and C are made to called the start() method.
 
In Agent B and C, I each added some behaviours to it in their respective setup();.
 
PROBLEM: Only behaviours in Agent A are executed. Behaviours in B & C never got executed. Why ?
Is there something with the way I am programming my agents ?
Am I allowed to create agents in another agents ? Or should I always run each agent as in separate JVM( that is
run from command prompt as different command window, thus different JVM) ??
 
I look forward to your help and assistance ( clarifications if my concepts of agents are wrong altogether!!)
 
Regards
David

Hi,
 
You are allowed to create new agents from within another agent. I'm afraid but there should be something wrong with your code.
Is the setup() method of B and C executed? Does it return?
 
Bye
 
Giovanni
 
 
-----Original Message-----
From: David [mailto:amdawong@starhub.net.sg]
Sent: marted́ 3 dicembre 2002 7.37
To: JADE
Subject: [jade-develop] Behaviour scheduling in an multi-agent system

Hi Jaders,

 

It says in the programmer’s guide that the behaviours added to an agent are scheduled in a round robin manner.

 

I have an question: What if I have one main agent A creating several other agents say agent B and agent C.

 

Agent B and C are created in agent A via the creatNewAgent(…..) method (in Agent A itself).

Agent B and C are made to called the start() method.

 

In Agent B and C, I each added some behaviours to it in their respective setup();.

 

PROBLEM: Only behaviours in Agent A are executed. Behaviours in B & C never got executed. Why ?

Is there something with the way I am programming my agents ?

Am I allowed to create agents in another agents ? Or should I always run each agent as in separate JVM( that is

run from command prompt as different command window, thus different JVM) ??

 

I look forward to your help and assistance ( clarifications if my concepts of agents are wrong altogether!!)

 

Regards

David



This archive was generated by hypermail 2a22 : Tue Dec 03 2002 - 09:49:47 MET