Package jmri.jmrix.loconet.pr3
Class PR3SystemConnectionMemo
java.lang.Object
jmri.beans.UnboundBean
jmri.beans.Bean
jmri.jmrix.DefaultSystemConnectionMemo
jmri.jmrix.loconet.LocoNetSystemConnectionMemo
jmri.jmrix.loconet.pr3.PR3SystemConnectionMemo
- All Implemented Interfaces:
BeanInterface,PropertyChangeFirer,PropertyChangeProvider,Disposable,ConfiguringSystemConnectionMemo,SystemConnectionMemo
- Direct Known Subclasses:
PR4SystemConnectionMemo,UsbDcs210PlusSystemConnectionMemo,UsbDcs240PlusSystemConnectionMemo,UsbDcs240SystemConnectionMemo,UsbDcs52SystemConnectionMemo
Lightweight class to denote that a PR3 is active
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) int(package private) static final int(package private) static final intFields inherited from class jmri.jmrix.loconet.LocoNetSystemConnectionMemo
mInterrogateAtStart, mTurnoutExtraSpace, mTurnoutNoRetry, predefinedMeters, tmFields inherited from class jmri.jmrix.DefaultSystemConnectionMemo
classObjectMapFields inherited from class jmri.beans.Bean
propertyChangeSupportFields inherited from interface jmri.SystemConnectionMemo
DEREGISTER, DISABLED, INTERVAL, STORE, SYSTEM_PREFIX, USER_NAME -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionvoidConfigure the LocoNet managers valid for the PR3 in MS100 mode, same as super, flag the interface type.voidConfigure the subset of LocoNet managers valid for the PR3 in PR2 mode.voiddispose()Dispose of System Connection.<T> TGet a manager for a specific type.Get the connection's LnPowerManager.booleanCheck if this connection provides a specific manager type.Methods inherited from class jmri.jmrix.loconet.LocoNetSystemConnectionMemo
configureCommandStation, configureManagers, getActionModelResourceBundle, getCabSignalManager, getClockControl, getIdTagManager, getLightManager, getLn7gAccyRoutesManager, getLncvDevicesManager, getLnMessageManager, getLnsv1DevicesManager, getLnTrafficController, getNamedBeanComparator, getPredefinedMeters, getProgrammerManager, getReporterManager, getSensorManager, getSlotManager, getStringIOManager, getThrottleStringIO, getTurnoutManager, register, setLn7gAccyRoutesManager, setLncvDevicesManager, setLnsv1DevicesManager, setLnTrafficController, setProgrammerManager, setThrottleManagerMethods inherited from class jmri.jmrix.DefaultSystemConnectionMemo
deregister, getActionFactory, getConsistManager, getDefaultOutputInterval, getDisabled, getOutputInterval, getSystemPrefix, getUserName, isDirty, isRestartRequired, setConsistManager, setDisabled, setOutputInterval, setSystemPrefix, setUserName, storeMethods inherited from class jmri.beans.Bean
addPropertyChangeListener, addPropertyChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeListeners, getPropertyChangeListeners, isNotifyOnEDT, removePropertyChangeListener, removePropertyChangeListenerMethods inherited from class jmri.beans.UnboundBean
getIndexedProperty, getProperty, getPropertyNames, hasIndexedProperty, hasProperty, setIndexedProperty, setPropertyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jmri.beans.PropertyChangeProvider
addPropertyChangeListener, addPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListenerMethods inherited from interface jmri.SystemConnectionMemo
getActionFactory, getDefaultOutputInterval, getDisabled, getOutputInterval, getSystemPrefix, getUserName, isDirty, isRestartRequired, setDisabled, setOutputInterval, setSystemPrefix, setUserName
-
Field Details
-
PR3MODE
- See Also:
-
MS100MODE
- See Also:
-
mode
int mode
-
-
Constructor Details
-
PR3SystemConnectionMemo
-
PR3SystemConnectionMemo
public PR3SystemConnectionMemo()
-
-
Method Details
-
get
Description copied from class:DefaultSystemConnectionMemoGet a manager for a specific type. This method must return a non-null value ifDefaultSystemConnectionMemo.provides(java.lang.Class)is true for the type, and must return null if provides() is false for the type.- Specified by:
getin interfaceSystemConnectionMemo- Overrides:
getin classDefaultSystemConnectionMemo- Type Parameters:
T- Type of manager to get- Parameters:
T- Type of manager to get- Returns:
- The manager or null if provides() is false for T
- See Also:
-
configureManagersPR2
Configure the subset of LocoNet managers valid for the PR3 in PR2 mode. -
getThrottleManager
- Overrides:
getThrottleManagerin classLocoNetSystemConnectionMemo
-
provides
Description copied from class:DefaultSystemConnectionMemoCheck if this connection provides a specific manager type. This method must return false if a manager for the specific type is not provided, and must return true if a manager for the specific type is provided.- Specified by:
providesin interfaceSystemConnectionMemo- Overrides:
providesin classDefaultSystemConnectionMemo- Parameters:
type- The class type for the manager to be provided- Returns:
- true if the specified manager is provided
- See Also:
-
getPowerManager
Get the connection's LnPowerManager.- Overrides:
getPowerManagerin classLocoNetSystemConnectionMemo- Returns:
- the LocoNet power manager; may be null in some circumstances
-
configureManagersMS100
Configure the LocoNet managers valid for the PR3 in MS100 mode, same as super, flag the interface type. -
dispose
Description copied from class:DefaultSystemConnectionMemoDispose of System Connection.Removes objects from classObjectMap after calling dispose if Disposable. Removes these objects from InstanceManager.
- Specified by:
disposein interfaceDisposable- Specified by:
disposein interfaceSystemConnectionMemo- Overrides:
disposein classLocoNetSystemConnectionMemo
-