|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ch.aplu.util.BaseAlarmTimer | +--ch.aplu.util.LoResAlarmTimer
Class to define a alarm timer with low resolution
(Resolution normally less than 10 milliseconds.)
The timer starts at the given time interval, runs backwards and stops
when it reaches zero.
(When using timer events by registering a TimerListener,
the AlarmTimer restarts automatically.)
(All timer manipulation methods call yield()
of the current thread unless disabled by special constructor.)
Constructor Summary | |
LoResAlarmTimer(long alarmTime)
Construct a AlarmTimer object and set its preset value to the given time interval in microseconds (us). |
|
LoResAlarmTimer(long alarmTime,
boolean autostart)
Same as LoResAlarmTimer(alarmTime), but the timer starts immediately if autostart is true. |
|
LoResAlarmTimer(long alarmTime,
boolean autostart,
boolean yield)
Same as LoResAlarmTimer(alarmTime, autostart), but most methods calls Thread.yield() automatically, if yield is true. |
Methods inherited from class ch.aplu.util.BaseAlarmTimer |
addTimerListener, getTime, isRunning, resume, start, start, stop, stopEvents |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LoResAlarmTimer(long alarmTime)
public LoResAlarmTimer(long alarmTime, boolean autostart)
public LoResAlarmTimer(long alarmTime, boolean autostart, boolean yield)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |