Package jmri.jmrix.loconet
Class LnPowerManager.LnTrackStatusUpdateThread
- java.lang.Object
-
- java.lang.Thread
-
- jmri.jmrix.loconet.LnPowerManager.LnTrackStatusUpdateThread
-
- All Implemented Interfaces:
java.lang.Runnable
- Enclosing class:
- LnPowerManager
static class LnPowerManager.LnTrackStatusUpdateThread extends java.lang.Thread
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.
-
-
Constructor Summary
Constructors Constructor Description LnTrackStatusUpdateThread(LnTrafficController tc)
Construct the thread.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
run()
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 Detail
-
LnTrackStatusUpdateThread
public LnTrackStatusUpdateThread(LnTrafficController tc)
Construct the thread.- Parameters:
tc
- LocoNetTrafficController which can be used to send the LocoNet message.
-
-
Method Detail
-
run
public void run()
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.- Specified by:
run
in interfacejava.lang.Runnable
- Overrides:
run
in classjava.lang.Thread
-
-