Discussion:
[jade-develop] handleRequest of AchieveREResponder
andres marti
2013-12-10 17:26:10 UTC
Permalink
Hi,

I have a tricky doubt about the class AchieveREResponder. The documentation says that when the method "handleRequest" returns an AGREE message, the method "prepareResultNotification" is called later. I guess that the combined execution of these two methods is not atomic. Is is atomic?

I need to know it because, in my case, after replying with an AGREE message to the initiators, the method "prepareResultNotification" only can complete its work when other messages have been received, so that the combination of "handleRequest" and "prepareResultNotification" cannot behave as an atomic unit.

Any help is appreciated. Regards,

Andres Marti.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://avalon.cselt.it/pipermail/jade-develop/attachments/20131210/27a5af41/attachment.html>
Caire Giovanni
2013-12-12 14:06:23 UTC
Permalink
Hi,

No it is not atomic.

Bye,

Giovanni

Da: jade-develop-bounces at avalon.tilab.com [mailto:jade-develop-bounces at avalon.tilab.com] Per conto di andres marti
Inviato: marted? 10 dicembre 2013 18:26
A: Jade Develop
Oggetto: [jade-develop] handleRequest of AchieveREResponder


Hi,

I have a tricky doubt about the class AchieveREResponder. The documentation says that when the method "handleRequest" returns an AGREE message, the method "prepareResultNotification" is called later. I guess that the combined execution of these two methods is not atomic. Is is atomic?

I need to know it because, in my case, after replying with an AGREE message to the initiators, the method "prepareResultNotification" only can complete its work when other messages have been received, so that the combination of "handleRequest" and "prepareResultNotification" cannot behave as an atomic unit.

Any help is appreciated. Regards,

Andres Marti.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://avalon.cselt.it/pipermail/jade-develop/attachments/20131212/91aec963/attachment-0001.html>
Andre Cavalcante
2013-12-12 15:19:36 UTC
Permalink
Caire,

It is interesting subject: when prepareResultNotificarion is called? There
is time to other behaviours to be executed before?

Thanks for your attention.




2013/12/12 Caire Giovanni <giovanni.caire at telecomitalia.it>
Post by Caire Giovanni
Hi,
No it is not atomic.
Bye,
Giovanni
jade-develop-bounces at avalon.tilab.com] *Per conto di *andres marti
*Inviato:* marted? 10 dicembre 2013 18:26
*A:* Jade Develop
*Oggetto:* [jade-develop] handleRequest of AchieveREResponder
Hi,
I have a tricky doubt about the class AchieveREResponder. The
documentation says that when the method "handleRequest" returns an AGREE
message, the method "prepareResultNotification" is called later. I guess
that the combined execution of these two methods is not atomic. Is is
atomic?
I need to know it because, in my case, after replying with an AGREE
message to the initiators, the method "prepareResultNotification" only can
complete its work when other messages have been received, so that the
combination of "handleRequest" and "prepareResultNotification" cannot
behave as an atomic unit.
Any help is appreciated. Regards,
Andres Marti.
_______________________________________________
jade-develop mailing list
jade-develop at avalon.tilab.com
https://avalon.cselt.it/mailman/listinfo/jade-develop
UNSUBSCRIBE INSTRUCTIONS AT
http://jade.tilab.com/community-mailinglist.htm
--
Andr? Cavalcante
Manaus, AM., Brasil

Ubuntu User number # 24370
Quer saber sobre Open Source Software? http://sobreoss.blogspot.com
Quer saber mais sobre Espiritismo? http://sobreespiritismo.blogspot.com

Aten??o: Este e-mail pode conter anexos no formato ODF (Open Document
Format)/ABNT (extens?es odt, ods, odp, odb, odg). Antes de pedir os anexos
em outro formato, voc? pode instalar gratuita e livremente o LibreOffice (
http://pt-br.libreoffice.org/).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://avalon.cselt.it/pipermail/jade-develop/attachments/20131212/d73aaf5c/attachment.html>
Caire Giovanni
2013-12-12 16:25:33 UTC
Permalink
Hi,

Yes there is. AchieveREResponder is an FSMBehaviour. The prepareResponse() and prepareResultNotification() methods are invoked within two different states --> If the agent has other behaviours, considering the cooperative-scheduling mechanism that regulates how behaviours are executed in an agent, such other behaviors have at least one chance to run between the two invocations.

Bye,

Giovanni

Da: Andre Cavalcante [mailto:andre.d.cavalcante at gmail.com]
Inviato: gioved? 12 dicembre 2013 16:20
A: Caire Giovanni
Cc: Jade Develop
Oggetto: Re: [jade-develop] R: handleRequest of AchieveREResponder

Caire,
It is interesting subject: when prepareResultNotificarion is called? There is time to other behaviours to be executed before?
Thanks for your attention.


2013/12/12 Caire Giovanni <giovanni.caire at telecomitalia.it<mailto:giovanni.caire at telecomitalia.it>>
Hi,

No it is not atomic.

Bye,

Giovanni

Da: jade-develop-bounces at avalon.tilab.com<mailto:jade-develop-bounces at avalon.tilab.com> [mailto:jade-develop-bounces at avalon.tilab.com<mailto:jade-develop-bounces at avalon.tilab.com>] Per conto di andres marti
Inviato: marted? 10 dicembre 2013 18:26
A: Jade Develop
Oggetto: [jade-develop] handleRequest of AchieveREResponder


Hi,

I have a tricky doubt about the class AchieveREResponder. The documentation says that when the method "handleRequest" returns an AGREE message, the method "prepareResultNotification" is called later. I guess that the combined execution of these two methods is not atomic. Is is atomic?

I need to know it because, in my case, after replying with an AGREE message to the initiators, the method "prepareResultNotification" only can complete its work when other messages have been received, so that the combination of "handleRequest" and "prepareResultNotification" cannot behave as an atomic unit.

Any help is appreciated. Regards,

Andres Marti.

_______________________________________________
jade-develop mailing list
jade-develop at avalon.tilab.com<mailto:jade-develop at avalon.tilab.com>
https://avalon.cselt.it/mailman/listinfo/jade-develop
UNSUBSCRIBE INSTRUCTIONS AT
http://jade.tilab.com/community-mailinglist.htm



--
Andr? Cavalcante
Manaus, AM., Brasil

Ubuntu User number # 24370
Quer saber sobre Open Source Software? http://sobreoss.blogspot.com<http://sobreoss.blogspot.com/>
Quer saber mais sobre Espiritismo? http://sobreespiritismo.blogspot.com<http://sobreespiritismo.blogspot.com/>

Aten??o: Este e-mail pode conter anexos no formato ODF (Open Document Format)/ABNT (extens?es odt, ods, odp, odb, odg). Antes de pedir os anexos em outro formato, voc? pode instalar gratuita e livremente o LibreOffice (http://pt-br.libreoffice.org/).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://avalon.cselt.it/pipermail/jade-develop/attachments/20131212/6b062de3/attachment.html>
Andre Cavalcante
2013-12-12 16:27:22 UTC
Permalink
Ok. Thanks.


2013/12/12 Caire Giovanni <giovanni.caire at telecomitalia.it>
Post by Caire Giovanni
Hi,
Yes there is. AchieveREResponder is an FSMBehaviour. The
prepareResponse() and prepareResultNotification() methods are invoked
within two different states ? If the agent has other behaviours,
considering the cooperative-scheduling mechanism that regulates how
behaviours are executed in an agent, such other behaviors have at least one
chance to run between the two invocations.
Bye,
Giovanni
*Da:* Andre Cavalcante [mailto:andre.d.cavalcante at gmail.com]
*Inviato:* gioved? 12 dicembre 2013 16:20
*A:* Caire Giovanni
*Cc:* Jade Develop
*Oggetto:* Re: [jade-develop] R: handleRequest of AchieveREResponder
Caire,
It is interesting subject: when prepareResultNotificarion is called? There
is time to other behaviours to be executed before?
Thanks for your attention.
2013/12/12 Caire Giovanni <giovanni.caire at telecomitalia.it>
Hi,
No it is not atomic.
Bye,
Giovanni
jade-develop-bounces at avalon.tilab.com] *Per conto di *andres marti
*Inviato:* marted? 10 dicembre 2013 18:26
*A:* Jade Develop
*Oggetto:* [jade-develop] handleRequest of AchieveREResponder
Hi,
I have a tricky doubt about the class AchieveREResponder. The
documentation says that when the method "handleRequest" returns an AGREE
message, the method "prepareResultNotification" is called later. I guess
that the combined execution of these two methods is not atomic. Is is
atomic?
I need to know it because, in my case, after replying with an AGREE
message to the initiators, the method "prepareResultNotification" only can
complete its work when other messages have been received, so that the
combination of "handleRequest" and "prepareResultNotification" cannot
behave as an atomic unit.
Any help is appreciated. Regards,
Andres Marti.
_______________________________________________
jade-develop mailing list
jade-develop at avalon.tilab.com
https://avalon.cselt.it/mailman/listinfo/jade-develop
UNSUBSCRIBE INSTRUCTIONS AT
http://jade.tilab.com/community-mailinglist.htm
--
Andr? Cavalcante
Manaus, AM., Brasil
Ubuntu User number # 24370
Quer saber sobre Open Source Software? http://sobreoss.blogspot.com
Quer saber mais sobre Espiritismo? http://sobreespiritismo.blogspot.com
Aten??o: Este e-mail pode conter anexos no formato ODF (Open Document
Format)/ABNT (extens?es odt, ods, odp, odb, odg). Antes de pedir os anexos
em outro formato, voc? pode instalar gratuita e livremente o LibreOffice (
http://pt-br.libreoffice.org/).
Questo messaggio e i suoi allegati sono indirizzati esclusivamente
alle persone indicate. La diffusione, copia o qualsiasi altra azione
derivante dalla conoscenza di queste informazioni sono rigorosamente
vietate. Qualora abbiate ricevuto questo documento per errore siete
cortesemente pregati di darne immediata comunicazione al mittente e di
provvedere alla sua distruzione, Grazie.
*This e-mail and any attachments** is **confidential and may contain
privileged information intended for the addressee(s) only. Dissemination,
copying, printing or use by anybody else is unauthorised. If you are not
the intended recipient, please delete this message and any attachments and
advise the sender by return e-mail, Thanks.*
*[image: rispetta l'ambiente]Rispetta l'ambiente. Non stampare questa mail
se non ? necessario.*
--
Andr? Cavalcante
Manaus, AM., Brasil

Ubuntu User number # 24370
Quer saber sobre Open Source Software? http://sobreoss.blogspot.com
Quer saber mais sobre Espiritismo? http://sobreespiritismo.blogspot.com

Aten??o: Este e-mail pode conter anexos no formato ODF (Open Document
Format)/ABNT (extens?es odt, ods, odp, odb, odg). Antes de pedir os anexos
em outro formato, voc? pode instalar gratuita e livremente o LibreOffice (
http://pt-br.libreoffice.org/).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://avalon.cselt.it/pipermail/jade-develop/attachments/20131212/ce2649ad/attachment-0001.html>
Loading...