Package jmri.jmrix.loconet.hexfile
Class HexFileSystemConnectionMemo
- java.lang.Object
-
- jmri.beans.UnboundBean
-
- jmri.beans.Bean
-
- jmri.jmrix.DefaultSystemConnectionMemo
-
- jmri.jmrix.loconet.LocoNetSystemConnectionMemo
-
- jmri.jmrix.loconet.hexfile.HexFileSystemConnectionMemo
-
- All Implemented Interfaces:
BeanInterface
,PropertyChangeFirer
,PropertyChangeProvider
,Disposable
,ConfiguringSystemConnectionMemo
,SystemConnectionMemo
public class HexFileSystemConnectionMemo extends LocoNetSystemConnectionMemo
Lightweight class to denote that a system is "active" via a LocoNet hexfile emulator.Objects of specific subtypes are registered in the instance manager to activate their particular system.
-
-
Field Summary
-
Fields inherited from class jmri.jmrix.loconet.LocoNetSystemConnectionMemo
mInterrogateAtStart, mTurnoutExtraSpace, mTurnoutNoRetry, predefinedMeters, tm
-
Fields inherited from class jmri.jmrix.DefaultSystemConnectionMemo
classObjectMap
-
Fields inherited from class jmri.beans.Bean
propertyChangeSupport
-
Fields inherited from interface jmri.SystemConnectionMemo
DEREGISTER, DISABLED, INTERVAL, STORE, SYSTEM_PREFIX, USER_NAME
-
-
Constructor Summary
Constructors Constructor Description HexFileSystemConnectionMemo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> T
get(java.lang.Class<T> type)
Substitute the jmri.progdebugger.DebugProgrammerManager when this connection is set to provide the default (Service Mode) GlobalProgrammerManager, replacing the LocoNet LnProgrammerManager that the super class would return.LnSensorManager
getSensorManager()
Use the simulation (hexfile) LocoNet sensor manager instead of the standard LocoNet sensor manager.-
Methods inherited from class jmri.jmrix.loconet.LocoNetSystemConnectionMemo
configureCommandStation, configureManagers, dispose, getActionModelResourceBundle, getCabSignalManager, getClockControl, getIdTagManager, getLightManager, getLn7gAccyRoutesManager, getLncvDevicesManager, getLnMessageManager, getLnTrafficController, getNamedBeanComparator, getPowerManager, getPredefinedMeters, getProgrammerManager, getReporterManager, getSlotManager, getStringIOManager, getThrottleManager, getThrottleStringIO, getTurnoutManager, register, setLn7gAccyRoutesManager, setLncvDevicesManager, setLnTrafficController, setProgrammerManager, setThrottleManager
-
Methods inherited from class jmri.jmrix.DefaultSystemConnectionMemo
deregister, getActionFactory, getConsistManager, getDefaultOutputInterval, getDisabled, getOutputInterval, getSystemPrefix, getUserName, isDirty, isRestartRequired, provides, setConsistManager, setDisabled, setOutputInterval, setSystemPrefix, setUserName, store
-
Methods inherited from class jmri.beans.Bean
addPropertyChangeListener, addPropertyChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeListeners, getPropertyChangeListeners, isNotifyOnEDT, removePropertyChangeListener, removePropertyChangeListener
-
Methods inherited from class jmri.beans.UnboundBean
getIndexedProperty, getProperty, getPropertyNames, hasIndexedProperty, hasProperty, setIndexedProperty, setProperty
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jmri.beans.PropertyChangeProvider
addPropertyChangeListener, addPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener
-
Methods inherited from interface jmri.SystemConnectionMemo
getActionFactory, getDefaultOutputInterval, getDisabled, getOutputInterval, getSystemPrefix, getUserName, isDirty, isRestartRequired, provides, setDisabled, setOutputInterval, setSystemPrefix, setUserName
-
-
-
-
Constructor Detail
-
HexFileSystemConnectionMemo
public HexFileSystemConnectionMemo()
-
-
Method Detail
-
getSensorManager
public LnSensorManager getSensorManager()
Use the simulation (hexfile) LocoNet sensor manager instead of the standard LocoNet sensor manager.- Overrides:
getSensorManager
in classLocoNetSystemConnectionMemo
-
get
@OverridingMethodsMustInvokeSuper public <T> T get(java.lang.Class<T> type)
Substitute the jmri.progdebugger.DebugProgrammerManager when this connection is set to provide the default (Service Mode) GlobalProgrammerManager, replacing the LocoNet LnProgrammerManager that the super class would return. For setting up this connection the substitution was already done inHexFileFrame.configure()
to allow for debugging and mocking replies from the layout connection. Since theManagerDefaultSelector
directly calls this memo, and not the InstanceManager, we prevent to return the default class which does not match the active instance, creating an extra programmer that shows up as an extra line in the Program over combo.- Specified by:
get
in interfaceSystemConnectionMemo
- Overrides:
get
in classDefaultSystemConnectionMemo
- Type Parameters:
T
- Type of manager to get- Parameters:
type
- Type of manager to get- Returns:
- The manager or null if provides() is false for T
- See Also:
DefaultSystemConnectionMemo.provides(java.lang.Class)
-
-