Class Lnsv1DevicesManager
- All Implemented Interfaces:
EventListener,PropertyChangeFirer,PropertyChangeProvider,Disposable,LocoNetListener
A centralized resource to help identify LocoNet "LNSV1 Format" devices and "manage" them.
Supports the following features: - LNSV1 "discovery" process supported via BROADCAST call - LNSV1 Device "destination address" change supported by writing a new value to LNSV 0 (close session next) - LNSV1 Device "reconfigure/reset" not supported/documented - identification of devices with conflicting "destination address"es (warning before program start) - identification of a matching JMRI "decoder definition" for each discovered device, if an appropriate definition exists (only 1 value is matched, checks for LNSVf1 protocol support) - identification of matching JMRI "roster entry" which matches each discovered device, if an appropriate roster entry exists - ability to open a symbolic programmer for a given discovered device, if an appropriate roster entry exists
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class jmri.beans.PropertyChangeSupport
propertyChangeSupport -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class jmri.beans.PropertyChangeSupport
addPropertyChangeListener, addPropertyChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeListeners, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener
-
Field Details
-
ROSTER_THREAD_NAME
- See Also:
-
-
Constructor Details
-
Lnsv1DevicesManager
-
-
Method Details
-
getDeviceList
-
getDeviceCount
-
clearDevicesList
-
message
Extract module information from a LNSVf1 READ_ONE REPLY message. If not already in the lnsv1Devices list, try to find a matching decoder definition (by address number and programming mode) and add it. Skip if already in the list.- Specified by:
messagein interfaceLocoNetListener- Parameters:
m- The received LocoNet message. Note that this same object may be presented to multiple users. It should not be modified here.
-
getDevice
-
prepareForSymbolicProgrammer
-
dispose
Description copied from interface:DisposableCalled when disposing of a disposable.Note there are no assurances this method will not be called multiple times against a single instance of this Disposable. It is the responsibility of this Disposable to protect itself and the application from ensuring that calling this method multiple times has no unwanted side effects.
- Specified by:
disposein interfaceDisposable
-