Class EchoAgent

  • All Implemented Interfaces:
    IEchoService

    public class EchoAgent
    extends java.lang.Object
    implements IEchoService
    Sends back the same message it received.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected IInternalAccess agent
      The micro agent class.
    • Constructor Summary

      Constructors 
      Constructor Description
      EchoAgent()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void messageArrived​(java.util.Map<java.lang.String,​java.lang.Object> msg)
      Send same message back to the sender.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • EchoAgent

        public EchoAgent()
    • Method Detail

      • messageArrived

        public void messageArrived​(java.util.Map<java.lang.String,​java.lang.Object> msg)
        Send same message back to the sender.
        Parameters:
        msg - The message.
        mt - The message type.