-/// Ivy bus = new Ivy("Dummy agent","ready"); -/// bus.bindMsg("(.*)",new IvyMessageHandler(myMessageListener)); -/// bus.start(null); -///-/// -///
+ /// Ivy bus = new Ivy("Dummy agent","ready");
+ /// bus.bindMsg("(.*)",new Ivy.MessageHandler(myMessageListener));
+ /// bus.start(null);
+ ///
+ /// How to send & receive:
+ /// the Ivy agent A performs There is one thread for each client connected, we could also
- /// create another thread each time we send a message.
+ /// Example:
- ///
the Ivy agent A performs b.bindMsg("^Hello (*)",cb);
- ///
the Ivy agent B performs b2.sendMsg("Hello world");
- ///
a thread in A will uun the callback cb with its second argument set
- /// to a array of String, with one single element, "world"
- ///