Package jmri.jmrit.symbolicprog
Class TcsImporter
- java.lang.Object
-
- jmri.jmrit.symbolicprog.TcsImporter
-
public class TcsImporter extends java.lang.Object
Import CV values from a TCS backup file (from a CDI backup) directly into a RosterEntry.Note that this does not update any GUI that's showing the RosterEntry, e.g. a RosterPane or FunctionLabelPane. Those must have their updates triggered elsewhere, e.g. TcsImportAction.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) VariableTableModel
model
(package private) java.util.Properties
tcsProperties
-
Constructor Summary
Constructors Constructor Description TcsImporter(java.io.File file, CvTableModel cvModel, VariableTableModel model)
The import process starts upon creation of a TcsImporterTcsImporter(java.io.InputStream stream)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setRosterEntry(RosterEntry rosterEntry)
(package private) static java.lang.String
unpackDescription(java.lang.String description, java.lang.String display)
-
-
-
Field Detail
-
tcsProperties
java.util.Properties tcsProperties
-
model
VariableTableModel model
-
-
Constructor Detail
-
TcsImporter
public TcsImporter(java.io.File file, CvTableModel cvModel, VariableTableModel model) throws java.io.IOException
The import process starts upon creation of a TcsImporter- Parameters:
file
- The File object to be readcvModel
- Model used to look up CV values (not used)model
- Variable model used to look up function bits (retained for later use)- Throws:
java.io.IOException
- from underlying file operations
-
TcsImporter
public TcsImporter(java.io.InputStream stream) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
setRosterEntry
public void setRosterEntry(RosterEntry rosterEntry)
-
unpackDescription
static java.lang.String unpackDescription(java.lang.String description, java.lang.String display)
-
-