View Javadoc

1   package cz.cuni.amis.pogamut.sposh.engine.timer;
2   
3   /**
4    * Timer used for things like frequency checking of sposh plans.
5    * @author Honza
6    */
7   public interface ITimer {
8       /**
9        * Initialize timer, e.g. synchronize it with system closk or anything.
10       */
11      void init();
12  
13      /**
14       * Suspend timer, until resume() is called, stop the clock.
15       */
16      void suspend();
17  
18      /**
19       * Is the timer suspended?
20       */
21      boolean isSuspended();
22  
23      /**
24       * Resume suspended timer
25       */
26      void resume();
27  
28      /**
29       * @return time 
30       */
31      long getTime();
32  }