smartlamp
Class Dimmer
java.lang.Object
java.lang.Thread
tron.VirtualThread
smartlamp.Dimmer
- All Implemented Interfaces:
- Runnable
public class Dimmer
- extends VirtualThread
Field Summary |
boolean |
alive
|
static boolean |
DBG
Controls whether the debug information should be produced into err
stream. true enables and false disables debug output. |
Constructor Summary |
Dimmer(long aTime,
int levelCount,
int mutant)
|
Methods inherited from class tron.VirtualThread |
activate, condBroadcast, condDelay, condDelay, condDestroy, condInit, condSignal, condWait, condWait, deactivate, getTime, getTimeMillis, mutexDestroy, mutexInit, mutexLock, mutexUnlock, quit, realtime, setRemoteClock, start, virtualtime |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, yield, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, stop, stop, suspend, toString |
DBG
public static boolean DBG
- Controls whether the debug information should be produced into err
stream. true enables and false disables debug output.
This variable can be set via environment variable DEBUG_DIMMER.
alive
public boolean alive
Dimmer
public Dimmer(long aTime,
int levelCount,
int mutant)
handleTouch
public void handleTouch()
handleStartHold
public void handleStartHold(long startHold)
handleEndHold
public void handleEndHold()
run
public void run()
- Specified by:
run
in interface Runnable
- Overrides:
run
in class Thread
getLevel
public int getLevel()
getMaxLevels
public int getMaxLevels()
addLevelListener
public void addLevelListener(LevelListener listener)