RE: [jade-develop] replying to messages in a fipa-conform manner


Subject: RE: [jade-develop] replying to messages in a fipa-conform manner
From: Bellifemine Fabio (Fabio.Bellifemine@TILAB.COM)
Date: Thu Sep 19 2002 - 15:26:14 MET DST


I think something about the following line:

ContentManager cm = myAgent.getContentManager();
ACLMessage msg = received.createReply();
cm.fillContent(msg,new Done(cm.extractContent(received));

-----Original Message-----
From: Felix Schmid [mailto:fsc.tech@spree.de]
Sent: 19 September 2002 11:40
To: jade-develop@sharon.cselt.it
Subject: [jade-develop] replying to messages in a fipa-conform manner

hello fabio, giovanni,

thanks for the help. I am adopting the AchieveREInitiator/Responder
coupling as you recommended, it's very easy to use.
However, a little question remains open:

If I have an action invoked by some AchieveREInitiator and I want to send
an fipa-conform inform to the
initiator I should send something like an inform containing ((done ...)
original_actionrequest_here).
Is there an easier way to to this than taking the original message, call a
createReply on it, getting it's content
as a String and insert "Done" at the beginning, not to forget about correct
bracing?

cheers,
felix

_______________________________________________
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 : Thu Sep 19 2002 - 15:26:21 MET DST