Beispiel #1
0
 public boolean isSuspended(Tickable E, int tickID) {
   Tick almostTock = null;
   Iterator set = null;
   for (Iterator<Tick> e = tickGroups(); e.hasNext(); ) {
     almostTock = e.next();
     set = almostTock.getTickSet(E, tickID);
     if (set.hasNext()) return ((TockClient) set.next()).suspended;
   }
   return false;
 }
Beispiel #2
0
 public boolean isTicking(Tickable E, int tickID) {
   Tick almostTock = null;
   Iterator set;
   for (Iterator<Tick> e = tickGroups(); e.hasNext(); ) {
     almostTock = e.next();
     set = almostTock.getTickSet(E, tickID);
     if (set.hasNext()) return true;
   }
   return false;
 }
Beispiel #3
0
 protected boolean suspendResumeTicking(Tickable E, int tickID, boolean suspend) {
   Tick almostTock = null;
   Iterator set = null;
   for (Iterator<Tick> e = tickGroups(); e.hasNext(); ) {
     almostTock = e.next();
     set = almostTock.getTickSet(E, tickID);
     for (; set.hasNext(); ) ((TockClient) set.next()).suspended = suspend;
   }
   return false;
 }
Beispiel #4
0
 public boolean deleteTick(Tickable E, int tickID) {
   Tick almostTock = null;
   Iterator set = null;
   for (Iterator<Tick> e = tickGroups(); e.hasNext(); ) {
     almostTock = e.next();
     set = almostTock.getTickSet(E, tickID);
     for (; set.hasNext(); ) almostTock.delTicker((TockClient) set.next());
   }
   return false;
 }