swap out agent functionality

View: New views
1 Messages — Rating Filter:   Alert me  

swap out agent functionality

by Faraz Fallahi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi

i have a rather bigger question. We are currently trying to convert huge parts of our framework with Agents using JADE. Ive worked my way through some simple szenarios and have written some agents. Asking Agents one by one is working just fine but now comes the brainer.
Im trying to implement a strategypattern which will decide the order of agents i want to call.
For that i need to store the replies of an answering Agent and call the next agent with the reply as an argument.
The only solution i have right now would be to write one "AgentCaller"-class that implements a listener of some sort which will be called by the Replying Agent, so that i would know when to call which Agent ( depending on the Replying Agent and its return value) with the AgentCaller.

Now i hope that somebody corrects me by saying "oh no thats not necessary we already have an integrated class that already does this for you" or "oh no we already have features like a,b,c,d that you can use to do this easily". ^^

Somehow i think the odds for that arent so bad, because i can imagine this is a usual scenario :)

i would really appreciate any help
thx
Faraz Fallahi
University of Tuebingen
_______________________________________________
jade-develop mailing list
jade-develop@...
https://avalon.cselt.it/mailman/listinfo/jade-develop
UNSUBSCRIBE INSTRUCTIONS AT
http://jade.tilab.com/community-mailinglist.htm