Package jmri.jmrix.marklin.cdb
Class CdBSystemConnectionMemo
- java.lang.Object
-
- jmri.beans.UnboundBean
-
- jmri.beans.Bean
-
- jmri.jmrix.DefaultSystemConnectionMemo
-
- jmri.jmrix.marklin.MarklinSystemConnectionMemo
-
- jmri.jmrix.marklin.cdb.CdBSystemConnectionMemo
-
- All Implemented Interfaces:
BeanInterface
,PropertyChangeFirer
,PropertyChangeProvider
,Disposable
,ConfiguringSystemConnectionMemo
,SystemConnectionMemo
public class CdBSystemConnectionMemo extends MarklinSystemConnectionMemo
Lightweight class to denote that a system is active, and provide general information.Objects of specific subtypes are registered in the instance manager to activate their particular system. Based on work by Bob Jacobsen
-
-
Field Summary
Fields Modifier and Type Field Description (package private) ComponentFactory
cf
-
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 CdBSystemConnectionMemo()
CdBSystemConnectionMemo(MarklinTrafficController et)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configureManagers()
This puts the common manager config in one place.void
dispose()
Dispose of System Connection.protected java.util.ResourceBundle
getActionModelResourceBundle()
<B extends NamedBean>
java.util.Comparator<B>getNamedBeanComparator(java.lang.Class<B> type)
Get the Comparator to be used for two NamedBeans.MarklinPowerManager
getPowerManager()
MarklinSensorManager
getSensorManager()
MarklinThrottleManager
getThrottleManager()
MarklinTrafficController
getTrafficController()
Provides access to the TrafficController for this particular connection.MarklinTurnoutManager
getTurnoutManager()
Provides access to the Programmer for this particular connection.void
setMarklinTrafficController(MarklinTrafficController et)
-
Methods inherited from class jmri.jmrix.DefaultSystemConnectionMemo
deregister, get, getActionFactory, getConsistManager, getDefaultOutputInterval, getDisabled, getOutputInterval, getSystemPrefix, getUserName, isDirty, isRestartRequired, provides, register, 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
get, getActionFactory, getDefaultOutputInterval, getDisabled, getOutputInterval, getSystemPrefix, getUserName, isDirty, isRestartRequired, provides, register, setDisabled, setOutputInterval, setSystemPrefix, setUserName
-
-
-
-
Constructor Detail
-
CdBSystemConnectionMemo
public CdBSystemConnectionMemo(MarklinTrafficController et)
-
CdBSystemConnectionMemo
public CdBSystemConnectionMemo()
-
-
Method Detail
-
getTrafficController
public MarklinTrafficController getTrafficController()
Provides access to the TrafficController for this particular connection.- Overrides:
getTrafficController
in classMarklinSystemConnectionMemo
- Returns:
- Marklin Traffic Controller.
-
setMarklinTrafficController
public void setMarklinTrafficController(MarklinTrafficController et)
- Overrides:
setMarklinTrafficController
in classMarklinSystemConnectionMemo
-
configureManagers
public void configureManagers()
This puts the common manager config in one place.- Specified by:
configureManagers
in interfaceConfiguringSystemConnectionMemo
- Overrides:
configureManagers
in classMarklinSystemConnectionMemo
-
getActionModelResourceBundle
protected java.util.ResourceBundle getActionModelResourceBundle()
- Overrides:
getActionModelResourceBundle
in classMarklinSystemConnectionMemo
-
getNamedBeanComparator
public <B extends NamedBean> java.util.Comparator<B> getNamedBeanComparator(java.lang.Class<B> type)
Description copied from class:DefaultSystemConnectionMemo
Get the Comparator to be used for two NamedBeans. This is typically anNamedBeanComparator
, but may be any Comparator that works for this connection type.- Specified by:
getNamedBeanComparator
in interfaceSystemConnectionMemo
- Overrides:
getNamedBeanComparator
in classMarklinSystemConnectionMemo
- Type Parameters:
B
- the type of NamedBean- Parameters:
type
- the class of NamedBean- Returns:
- the Comparator
-
getTurnoutManager
public MarklinTurnoutManager getTurnoutManager()
Provides access to the Programmer for this particular connection. NOTE: Programmer defaults to null- Overrides:
getTurnoutManager
in classMarklinSystemConnectionMemo
- Returns:
- programmer manager.
-
getSensorManager
public MarklinSensorManager getSensorManager()
- Overrides:
getSensorManager
in classMarklinSystemConnectionMemo
-
getThrottleManager
public MarklinThrottleManager getThrottleManager()
- Overrides:
getThrottleManager
in classMarklinSystemConnectionMemo
-
getPowerManager
public MarklinPowerManager getPowerManager()
- Overrides:
getPowerManager
in classMarklinSystemConnectionMemo
-
dispose
public void dispose()
Description copied from class:DefaultSystemConnectionMemo
Dispose of System Connection.Removes objects from classObjectMap after calling dispose if Disposable. Removes these objects from InstanceManager.
- Specified by:
dispose
in interfaceDisposable
- Specified by:
dispose
in interfaceSystemConnectionMemo
- Overrides:
dispose
in classMarklinSystemConnectionMemo
-
-