Package jmri.jmrix.ecos.utilities
Class EcosLocoToRoster
- java.lang.Object
-
- jmri.jmrix.ecos.utilities.EcosLocoToRoster
-
- All Implemented Interfaces:
java.util.EventListener
,AbstractMRListener
,EcosListener
public class EcosLocoToRoster extends java.lang.Object implements EcosListener
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
EcosLocoToRoster.DecoderTreeNode
-
Field Summary
Fields Modifier and Type Field Description (package private) java.lang.String
_ecosObject
(package private) int
_ecosObjectInt
(package private) java.awt.Label
_statusLabel
(package private) EcosSystemConnectionMemo
adaptermemo
(package private) CvTableModel
cvModel
(package private) org.jdom2.Element
decoderRoot
(package private) javax.swing.event.TreeSelectionListener
dListener
(package private) javax.swing.tree.DefaultTreeModel
dModel
(package private) javax.swing.tree.DefaultMutableTreeNode
dRoot
(package private) javax.swing.JTree
dTree
(package private) EcosLocoAddress
ecosLoco
(package private) EcosLocoAddressManager
ecosManager
(package private) java.lang.String
filename
(package private) javax.swing.JFrame
frame
(package private) boolean
getFunctionSupported
protected javax.swing.JToggleButton
iddecoder
(package private) boolean
inProcess
protected javax.swing.JComboBox<?>
locoBox
(package private) java.util.ArrayList<EcosLocoAddress>
locoList
(package private) org.jdom2.Element
modelElem
(package private) Programmer
mProgrammer
(package private) EcosPreferences
p
(package private) DecoderFile
pDecoderFile
(package private) org.jdom2.Element
programmerRoot
(package private) javax.swing.JLabel
progStatus
(package private) RosterEntry
re
(package private) ResetTableModel
resetModel
(package private) boolean
suppressFurtherAdditions
(package private) VariableTableModel
variableModel
(package private) boolean
waitingForComplete
-
Constructor Summary
Constructors Constructor Description EcosLocoToRoster(EcosSystemConnectionMemo memo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addToQueue(EcosLocoAddress ecosObject)
boolean
checkDuplicate(java.lang.String id)
Check for Duplicate roster entry.void
comboPanel()
void
ecosLocoToRoster(java.lang.String ecosObject)
(package private) void
getFunctionDetails(int func)
(package private) boolean
isDecoderSelected()
protected javax.swing.JPanel
layoutDecoderSelection()
protected void
loadDecoderFile(DecoderFile df, RosterEntry re)
protected void
loadProgrammerFile(RosterEntry r)
void
message(EcosMessage m)
void
processQueue()
(package private) void
readConfig(org.jdom2.Element root, RosterEntry r)
void
reply(EcosReply m)
protected void
selectDecoder(java.lang.String mfgID, java.lang.String modelID)
(package private) java.lang.String
selectedDecoderType()
(package private) void
storeloco()
(package private) void
updateForDecoderMfgID(java.lang.String pMfg, int pMfgID, int pModelID)
(package private) void
updateForDecoderNotID(int pMfgID, int pModelID)
(package private) void
updateForDecoderTypeID(java.util.List<DecoderFile> pList)
-
-
-
Field Detail
-
ecosManager
EcosLocoAddressManager ecosManager
-
ecosLoco
EcosLocoAddress ecosLoco
-
re
RosterEntry re
-
filename
java.lang.String filename
-
pDecoderFile
DecoderFile pDecoderFile
-
_ecosObject
java.lang.String _ecosObject
-
_ecosObjectInt
int _ecosObjectInt
-
_statusLabel
java.awt.Label _statusLabel
-
cvModel
CvTableModel cvModel
-
mProgrammer
Programmer mProgrammer
-
progStatus
javax.swing.JLabel progStatus
-
locoBox
protected javax.swing.JComboBox<?> locoBox
-
iddecoder
protected javax.swing.JToggleButton iddecoder
-
frame
javax.swing.JFrame frame
-
adaptermemo
EcosSystemConnectionMemo adaptermemo
-
suppressFurtherAdditions
boolean suppressFurtherAdditions
-
waitingForComplete
boolean waitingForComplete
-
inProcess
boolean inProcess
-
locoList
java.util.ArrayList<EcosLocoAddress> locoList
-
dTree
javax.swing.JTree dTree
-
dModel
javax.swing.tree.DefaultTreeModel dModel
-
dRoot
javax.swing.tree.DefaultMutableTreeNode dRoot
-
dListener
javax.swing.event.TreeSelectionListener dListener
-
modelElem
org.jdom2.Element modelElem
-
decoderRoot
org.jdom2.Element decoderRoot
-
variableModel
VariableTableModel variableModel
-
programmerRoot
org.jdom2.Element programmerRoot
-
resetModel
ResetTableModel resetModel
-
getFunctionSupported
boolean getFunctionSupported
-
-
Constructor Detail
-
EcosLocoToRoster
public EcosLocoToRoster(EcosSystemConnectionMemo memo)
-
-
Method Detail
-
addToQueue
public void addToQueue(EcosLocoAddress ecosObject)
-
processQueue
public void processQueue()
-
ecosLocoToRoster
public void ecosLocoToRoster(java.lang.String ecosObject)
-
reply
public void reply(EcosReply m)
- Specified by:
reply
in interfaceEcosListener
-
message
public void message(EcosMessage m)
- Specified by:
message
in interfaceEcosListener
-
storeloco
void storeloco()
-
comboPanel
public void comboPanel()
-
selectedDecoderType
java.lang.String selectedDecoderType()
-
isDecoderSelected
boolean isDecoderSelected()
-
checkDuplicate
public boolean checkDuplicate(java.lang.String id)
Check for Duplicate roster entry.- Parameters:
id
- Loco ID String.- Returns:
- true if the value in the Ecos Description is a duplicate of some other RosterEntry in the roster
-
layoutDecoderSelection
protected javax.swing.JPanel layoutDecoderSelection()
-
selectDecoder
protected void selectDecoder(java.lang.String mfgID, java.lang.String modelID)
-
updateForDecoderNotID
void updateForDecoderNotID(int pMfgID, int pModelID)
-
updateForDecoderMfgID
void updateForDecoderMfgID(java.lang.String pMfg, int pMfgID, int pModelID)
-
updateForDecoderTypeID
void updateForDecoderTypeID(java.util.List<DecoderFile> pList)
-
loadDecoderFile
protected void loadDecoderFile(DecoderFile df, RosterEntry re)
-
loadProgrammerFile
protected void loadProgrammerFile(RosterEntry r)
-
readConfig
void readConfig(org.jdom2.Element root, RosterEntry r)
-
getFunctionDetails
void getFunctionDetails(int func)
-
-