|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSecurityLightController.LightTimer
public class LightTimer
This class implements a light timer. It is used to control the timeouts associated with a given light.
Field Summary | |
---|---|
private LightControllerCommandInterface |
callback
This variable holds the callback which is invoked when the timer expires. |
private int |
mydelay
This variable holds the delay in seconds until the timer expires. |
private java.lang.Thread |
t
This variable holds the thread which is to tun for this timer. |
Constructor Summary | |
---|---|
LightTimer(LightControllerCommandInterface callback)
|
Method Summary | |
---|---|
void |
startTimer(int delay)
This method will start the timer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private int mydelay
private LightControllerCommandInterface callback
private java.lang.Thread t
Constructor Detail |
---|
public LightTimer(LightControllerCommandInterface callback)
callback
- This is the callback for when the timer expires.Method Detail |
---|
public void startTimer(int delay)
LightTimerInterface
startTimer
in interface LightTimerInterface
delay
- This is the delay, in seconds, for the given timer.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |