Class PingingAgent


  • public class PingingAgent
    extends java.lang.Object
    Agent that pings another and waits for its replies.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected IInternalAccess agent
      The micro agent class.
      protected int dif
      The difference between sent messages and received replies.
      protected IComponentIdentifier receiver
      The receiver.
      protected java.util.Set<java.lang.String> sent
      Hashset with conversation ids of sent messages.
    • Constructor Summary

      Constructors 
      Constructor Description
      PingingAgent()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      IFuture<java.lang.Void> executeBody()
      Execute the body.
      void messageArrived​(java.util.Map<java.lang.String,​java.lang.Object> msg)
      Called when a message arrives.
      • Methods inherited from class java.lang.Object

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

      • dif

        protected int dif
        The difference between sent messages and received replies.
      • sent

        protected java.util.Set<java.lang.String> sent
        Hashset with conversation ids of sent messages.
    • Constructor Detail

      • PingingAgent

        public PingingAgent()
    • Method Detail

      • executeBody

        public IFuture<java.lang.Void> executeBody()
        Execute the body.
      • messageArrived

        public void messageArrived​(java.util.Map<java.lang.String,​java.lang.Object> msg)
        Called when a message arrives.