Subject: Re: [jade-develop] (no subject)
From: Nicolas Lhuillier (Nicolas.Lhuillier@motorola.com)
Date: Mon Sep 09 2002 - 10:26:46 MET DST
Manuel,
One comment first, I think in order to conform with "FIPA-request"
spirit, you need to send the agree before forwarding the request to the
third agent. The idea of the agree is that you immediately inform the
requester agent that you will proceed its request but that you'll need
some time before sending the actual result (see your modified diagram
attached).
For the implementation, this is just a suggestion (as I have never tried
myself), but maybe you could first send the agree in the
prepareResponse() of the AchieveREResponder, then register a behaviour
in the registerPrepareResultNotification() that will start an
AchieveREInitiator behaviour and block until this second behaviour gets
the result.
(note that if you don't like the block, I think you may also consider
the use of a sequential behaviour comprised of an AchieveREInitiator and
a second behaviour that sends back the result).
Good luck,
Nicolas
Manuel Gentile wrote:
> Hi i would to implement ths protocol for tha agent in the middle....
> I try to use a combination of AchieveREResponder and
> AchieveREInitiator...but i find more problem.
> Who can help me?
>
--
---------------------------------------------------------------------
Nicolas Lhuillier - Research Engineer - Motorola Labs Paris
Tel: +33-(0)1-6935-2523 eMail: Nicolas.Lhuillier@motorola.com
This archive was generated by hypermail 2a22 : Mon Sep 09 2002 - 10:24:42 MET DST