Package jmri.jmrix.loconet
Class LnPowerManager.LnTrackStatusUpdateThread
java.lang.Object
java.lang.Thread
jmri.jmrix.loconet.LnPowerManager.LnTrackStatusUpdateThread
- All Implemented Interfaces:
Runnable
- Enclosing class:
- LnPowerManager
Class providing a thread to delay, then query slot 0. The LnPowerManager
can use the resulting OPC_SL_RD_DATA message to update its view of the
current track status.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidrun()Runs the thread - Waits a while (to allow the managers to initialize), then sends a query of slot 0 so that the PowerManager can inspect the"<trk>"byte.Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
Constructor Details
-
LnTrackStatusUpdateThread
Construct the thread.- Parameters:
tc- LocoNetTrafficController which can be used to send the LocoNet message.
-
-
Method Details