Luis Lezcano Airaldi
2014-05-23 17:28:15 UTC
Hello list!
I'm having an issue with nested protocols. I have an agent which has a
ContractNetResponder and, inside the responder, there is a
ContractNetInitiator.
Also, it has a SubscriptionInitiator to subscribe to the DF, to be notified
when certain agents register.
The problem is that I'm receiving the _initial_ INFORM message from the DF in
the prepareCfps(ACLMessage cfp) method of the initiator. Subsequent messages
are received just fine in the handleInform() method of the
SubscriptionInitiator.
I think there is a way of handling this, but I'm not sure how. I need to tell
the ContractNetInitiator to ignore the INFORM message from the df, so it can
be processed by the SubscriptionInitiator. Is there a method I should
override, that I'm not aware of?
Thanks for your help.
Regards.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: This is a digitally signed message part.
URL: <http://avalon.cselt.it/pipermail/jade-develop/attachments/20140523/561fd189/attachment.pgp>
I'm having an issue with nested protocols. I have an agent which has a
ContractNetResponder and, inside the responder, there is a
ContractNetInitiator.
Also, it has a SubscriptionInitiator to subscribe to the DF, to be notified
when certain agents register.
The problem is that I'm receiving the _initial_ INFORM message from the DF in
the prepareCfps(ACLMessage cfp) method of the initiator. Subsequent messages
are received just fine in the handleInform() method of the
SubscriptionInitiator.
I think there is a way of handling this, but I'm not sure how. I need to tell
the ContractNetInitiator to ignore the INFORM message from the df, so it can
be processed by the SubscriptionInitiator. Is there a method I should
override, that I'm not aware of?
Thanks for your help.
Regards.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: This is a digitally signed message part.
URL: <http://avalon.cselt.it/pipermail/jade-develop/attachments/20140523/561fd189/attachment.pgp>