Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }