Package jmri.jmrix.nce.consist
Class NceConsistRestore
- java.lang.Object
-
- java.lang.Thread
-
- jmri.jmrix.nce.consist.NceConsistRestore
-
- All Implemented Interfaces:
java.lang.Runnable
,java.util.EventListener
,AbstractMRListener
,NceListener
public class NceConsistRestore extends java.lang.Thread implements NceListener
Restores NCE consists from a text file defined by NCE.NCE file format:
:F500 (16 bytes per line, grouped as 8 words with space delimiters) :F510 . . :FAF0 :0000
The restore routine checks that each line of the file begins with the appropriate consist address.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) javax.swing.JLabel
consistNumber
(package private) javax.swing.JLabel
textConsist
-
Constructor Summary
Constructors Constructor Description NceConsistRestore(NceTrafficController t)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
message(NceMessage m)
void
reply(NceReply r)
void
run()
-
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
-
NceConsistRestore
public NceConsistRestore(NceTrafficController t)
-
-
Method Detail
-
run
public void run()
- Specified by:
run
in interfacejava.lang.Runnable
- Overrides:
run
in classjava.lang.Thread
-
message
public void message(NceMessage m)
- Specified by:
message
in interfaceNceListener
-
reply
public void reply(NceReply r)
- Specified by:
reply
in interfaceNceListener
-
-