Class MessagePerformanceAgent


  • public class MessagePerformanceAgent
    extends java.lang.Object
    Test message performance.
    • Field Detail

      • received

        protected int received
        The received messages.
      • starttime

        protected long starttime
        The start time.
      • current

        protected int current
        The current message number sent.
      • future

        protected Future<java.lang.Void> future
        The future for terminating.
    • Constructor Detail

      • MessagePerformanceAgent

        public MessagePerformanceAgent()
    • Method Detail

      • agentCreated

        public IFuture<java.lang.Void> agentCreated()
        Called once after agent creation.
      • executeBody

        public IFuture<java.lang.Void> executeBody()
        Execute an agent step.
      • messageArrived

        public void messageArrived​(java.util.Map<java.lang.String,​java.lang.Object> msg)
        Called on message arrival.
      • getTime

        public IFuture<java.lang.Long> getTime()
        Get the time.