Package jmri.jmrix.nce.consist
Class NceConsistBackup
- java.lang.Object
-
- java.lang.Thread
-
- jmri.jmrix.nce.consist.NceConsistBackup
-
- All Implemented Interfaces:
java.lang.Runnable,java.util.EventListener,AbstractMRListener,NceListener
public class NceConsistBackup extends java.lang.Thread implements NceListener
Backups NCE Consists to a text file format defined by NCE.NCE "Backup consists" dumps the consists into a text file. The consists data are stored in the NCE CS starting at xF500 and ending at xFAFF.
NCE file format:
:F500 (16 bytes per line, grouped as 8 words with space delimiters) :F510 . . :FAF0 :0000
Consist data byte:
bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
This backup routine uses the same consist data format as NCE.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) javax.swing.JLabelconsistNumber(package private) javax.swing.JLabeltextConsist
-
Constructor Summary
Constructors Constructor Description NceConsistBackup(NceTrafficController t)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidmessage(NceMessage m)voidreply(NceReply r)voidrun()-
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
-
-
-
-
Field Detail
-
textConsist
javax.swing.JLabel textConsist
-
consistNumber
javax.swing.JLabel consistNumber
-
-
Constructor Detail
-
NceConsistBackup
public NceConsistBackup(NceTrafficController t)
-
-
Method Detail
-
run
public void run()
- Specified by:
runin interfacejava.lang.Runnable- Overrides:
runin classjava.lang.Thread
-
message
public void message(NceMessage m)
- Specified by:
messagein interfaceNceListener
-
reply
public void reply(NceReply r)
- Specified by:
replyin interfaceNceListener
-
-