[jade-develop] task synchronization


Subject: [jade-develop] task synchronization
From: Luca Sabatucci (sabatucci@csai.unipa.it)
Date: Tue Feb 25 2003 - 17:38:46 MET


Hi,

I am working with jade and I have to solve the following problem:
An agent has got a resource to share to the agent community. This agent
at setup add an AchieveREResponder behaviour to his queue for listening
incoming FIPA request communication.
When the behaviour receives a request performative it have to operate
these steps:

1) in prepareResponse method, it replies with "agree" performative act

2) it have to update the resource. The "update" activity is a role
assigned to another behaviour: PrepareResource (an OneShotBehaviour).

3) in prepareResultNotification method, reply with "inform" performative
act where the content field contains the updated data.

I have a problem in the second step: in the prepareResultNotification
method the Listener adds a PrepareResponse to the agent queue; how could
I block all the Listener activities in order to wait the completion of
his "sub-behaviour" task?
Block and Restart methods could help me?

Thanx for any help!
Luca

_______________________________________________
jade-develop mailing list
jade-develop@sharon.cselt.it
http://sharon.cselt.it/mailman/listinfo/jade-develop
UNSUBSCRIBE INSTRUCTIONS AT http://jade.cselt.it/mailing.htm#unsubscribe



This archive was generated by hypermail 2a22 : Tue Feb 25 2003 - 17:36:23 MET