Class Counter


  • public class Counter
    extends java.lang.Object
    A thread safe counter to determine when all agents are running.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected int cnt
      The counter.
    • Constructor Summary

      Constructors 
      Constructor Description
      Counter()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int increment()
      Increment and return the counter value.
      • Methods inherited from class java.lang.Object

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

      • cnt

        protected int cnt
        The counter.
    • Constructor Detail

      • Counter

        public Counter()
    • Method Detail

      • increment

        public int increment()
        Increment and return the counter value.