Package jmri.jmrit.vsdecoder
Class VSDecoderManager
java.lang.Object
jmri.jmrit.vsdecoder.VSDecoderManager
- All Implemented Interfaces:
PropertyChangeListener
,EventListener
public class VSDecoderManager extends Object implements PropertyChangeListener
VSDecoderFactory, builds VSDecoders as needed, handles loading from XML if needed.
This file is part of JMRI.
This file is part of JMRI.
JMRI is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation. See the "COPYING" file for a copy of this license.
JMRI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
Field Summary
Fields Modifier and Type Field Description (package private) HashMap<String,VSDecoder>
decoderAddressMap
(package private) HashMap<Integer,VSDecoder>
decoderInBlock
(package private) HashMap<String,VSDecoder>
decodertable
(package private) boolean
geofile_ok
(package private) boolean
is_tunnel
protected EventListenerList
listenerList
(package private) HashMap<String,VSDListener>
listenerTable
static int
max_decoder
protected NamedBeanHandleManager
nbhm
(package private) int
num_setups
(package private) HashMap<String,String>
profiletable
-
Constructor Summary
Constructors Constructor Description VSDecoderManager()
-
Method Summary
-
Field Details
-
nbhm
-
listenerTable
-
decodertable
-
decoderAddressMap
-
decoderInBlock
-
profiletable
-
listenerList
-
max_decoder
- See Also:
- Constant Field Values
-
is_tunnel
boolean is_tunnel -
geofile_ok
boolean geofile_ok -
num_setups
int num_setups
-
-
Constructor Details
-
VSDecoderManager
public VSDecoderManager()
-
-
Method Details
-
instance
-
getVSDecoderPreferences
-
getMasterVolume
-
setMasterVolume
-
provideManagerFrame
-
getVSDecoder
Deprecated. -
getVSDecoder
-
getVSDecoder
Provide or build a VSDecoder based on a provided configuration.- Parameters:
config
- previous configuration, not null.- Returns:
- vsdecoder, or null on error.
-
getVSDecoderByID
-
getVSDecoderByAddress
-
setDefaultVSDecoder
-
getDefaultVSDecoder
-
getVSDProfileNames
-
getVSDecoderList
-
getDefaultListenerName
-
getDefaultListenerLocation
-
setListenerLocation
-
setDecoderPositionByID
-
setDecoderPositionByAddr
-
addEventListener
-
removeEventListener
-
fireMyEvent
-
getProfilePath
Retrieve the Path for a given Profile name.- Parameters:
profile
- the profile to get the path for- Returns:
- the path for the profile
-
registerReporterListener
-
registerBeanListener
-
registerReporterListeners
-
shutdownDecoders
-
propertyChange
- Specified by:
propertyChange
in interfacePropertyChangeListener
-
blockPropertyChange
-
reporterPropertyChange
-
reporterPropertyChangeGeo
-
reporterManagerPropertyChange
-
getArrayIndex
-
getNumberOfDecoders
-
locoInBlockRemove
-
loadProfiles
-
initSoundPositionTimer
-
startSoundPositionTimer
-
stopSoundPositionTimer
-
calcNewPosition
-