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; }
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; }
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; }
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; }