Discussion:
[jade-develop] blocking/unblocking behaviours
Sebastian Beer
2013-10-29 13:25:13 UTC
Permalink
Hi there,

I am wondering if it is possible to unblock behaviours out of other
behaviours. More precisely, I consider a scenario where agents are both
CNET initiators and responders at the same time. Now, let's assume there
are three agents A, B, and C, and A is sending a CFP to B and B is sending
a CFP to C. What I now want to realize is that B waits with his response to
A after his negotiation with C has finished. My first guess would be to
block B's responder behaviour within the handleCfp() method and make sure
it is blocked until B's initiator behaviour unblocks it - but I'm not sure
how to realize an unblock out of another behaviour.

Best regards,
Sebastian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://avalon.cselt.it/pipermail/jade-develop/attachments/20131029/72b623d4/attachment.html>
Henrique Lopes Cardoso
2013-10-29 14:01:19 UTC
Permalink
Hi,

I believe that what you are trying to do is best done using the
register facility of JADE, which allows you to register a protocol to
handle a particular message of another protocol.
In your specific case, look at SSContractNetResponder.registerHandleCfp(...):

http://jade.tilab.com/doc/api/jade/proto/SSContractNetResponder.html#registerHandleCfp(jade.core.behaviours.Behaviour)

Cheers,

Henrique




On Tue, Oct 29, 2013 at 1:25 PM, Sebastian Beer
Post by Sebastian Beer
Hi there,
I am wondering if it is possible to unblock behaviours out of other
behaviours. More precisely, I consider a scenario where agents are both CNET
initiators and responders at the same time. Now, let's assume there are
three agents A, B, and C, and A is sending a CFP to B and B is sending a CFP
to C. What I now want to realize is that B waits with his response to A
after his negotiation with C has finished. My first guess would be to block
B's responder behaviour within the handleCfp() method and make sure it is
blocked until B's initiator behaviour unblocks it - but I'm not sure how to
realize an unblock out of another behaviour.
Best regards,
Sebastian
_______________________________________________
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
--
----- - - - - - - - - - - - -

Henrique Lopes Cardoso
DEI/FEUP
Rua Dr. Roberto Frias | 4200-465 Porto
PORTUGAL
VoIP: (+351) 220413355
Phone: (+351) 225081400 ext.1315
hlc at fe.up.pt | www.fe.up.pt/~hlc
----- - - - - - - - - - - - -
Sebastian Beer
2013-10-30 10:47:43 UTC
Permalink
Thanks Henrique, this seems appropriate, I will give it a try!


Regards,
Sebastian
Post by Henrique Lopes Cardoso
Hi,
I believe that what you are trying to do is best done using the
register facility of JADE, which allows you to register a protocol to
handle a particular message of another protocol.
In your specific case, look at
http://jade.tilab.com/doc/api/jade/proto/SSContractNetResponder.html#registerHandleCfp(jade.core.behaviours.Behaviour)
Cheers,
Henrique
On Tue, Oct 29, 2013 at 1:25 PM, Sebastian Beer
Post by Sebastian Beer
Hi there,
I am wondering if it is possible to unblock behaviours out of other
behaviours. More precisely, I consider a scenario where agents are both
CNET
Post by Sebastian Beer
initiators and responders at the same time. Now, let's assume there are
three agents A, B, and C, and A is sending a CFP to B and B is sending a
CFP
Post by Sebastian Beer
to C. What I now want to realize is that B waits with his response to A
after his negotiation with C has finished. My first guess would be to
block
Post by Sebastian Beer
B's responder behaviour within the handleCfp() method and make sure it is
blocked until B's initiator behaviour unblocks it - but I'm not sure how
to
Post by Sebastian Beer
realize an unblock out of another behaviour.
Best regards,
Sebastian
_______________________________________________
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
--
----- - - - - - - - - - - - -
Henrique Lopes Cardoso
DEI/FEUP
Rua Dr. Roberto Frias | 4200-465 Porto
PORTUGAL
VoIP: (+351) 220413355
Phone: (+351) 225081400 ext.1315
hlc at fe.up.pt | www.fe.up.pt/~hlc
----- - - - - - - - - - - - -
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://avalon.cselt.it/pipermail/jade-develop/attachments/20131030/d0c34170/attachment.html>
Loading...