Hi,
If the point is that receiving messages and forward them to interested agents, I would suggest using simply a CyclicBehaviour.
Note also that JADE also provides Topic-based communication that is:
E.g.
- agents A and B can register for messages that "are about Topic SPORT"
- whenever another agent C sends a message about SPORT both A and B will automatically receive the message.
Topic based communication is implemented by means of the jade.core.messaging.TopicManagementService that must therefore be activated in all containers of your platform. See section 3.3.5 of the JADE Programmer's guide for details about Topic-based communication and the classes included in the examples.topic package for an example.
Bye,
Giovanni
-----Original Message-----
From:
jade-develop-bounces@... [mailto:
jade-develop-bounces@...] On Behalf Of Andrea Pierangeli
Sent: lunedì 19 ottobre 2009 9.30
To:
jade-develop@...
Subject: [jade-develop] suggestion for agent implementation
Hi,
I need to build an agent that:
- registers agentswith messages (of
different type) they want to receive;
- receives messages from agents;
-
forwards received messages to agents that registered befoure for that type.
I
just implemented the registration part using the AchieveReInititator/Responder
protocol.
Now I'd like to know if there is a Behaviour/Protocol that fits my
needs.
Thanks in advance
Andrea Pierangeli
_______________________________________________
jade-develop mailing list
jade-develop@...
https://avalon.cselt.it/mailman/listinfo/jade-developUNSUBSCRIBE INSTRUCTIONS AT
http://jade.tilab.com/community-mailinglist.htm_______________________________________________
jade-develop mailing list
jade-develop@...
https://avalon.cselt.it/mailman/listinfo/jade-developUNSUBSCRIBE INSTRUCTIONS AT
http://jade.tilab.com/community-mailinglist.htm