Package jmri.jmrix.tmcc
Class TmccSystemConnectionMemo
java.lang.Object
jmri.beans.UnboundBean
jmri.beans.Bean
jmri.jmrix.DefaultSystemConnectionMemo
jmri.jmrix.tmcc.TmccSystemConnectionMemo
- All Implemented Interfaces:
BeanInterface
,PropertyChangeFirer
,PropertyChangeProvider
,Disposable
,ConfiguringSystemConnectionMemo
,SystemConnectionMemo
public class TmccSystemConnectionMemo extends DefaultSystemConnectionMemo implements ConfiguringSystemConnectionMemo
Provide the required SystemConnectionMemo.
Migrated to multi-system support. Added a configureManagers() method
that creates local objects and remove the instance() variables.
-
Field Summary
Fields Modifier and Type Field Description (package private) ComponentFactory
cf
Fields inherited from interface jmri.SystemConnectionMemo
DISABLED, INTERVAL, SYSTEM_PREFIX, USER_NAME
-
Constructor Summary
Constructors Constructor Description TmccSystemConnectionMemo()
TmccSystemConnectionMemo(String prefix, String name)
TmccSystemConnectionMemo(SerialTrafficController tc)
Ctor -
Method Summary
Modifier and Type Method Description void
configureManagers()
Configure the common managers for tmcc connections.void
dispose()
Called when disposing of a disposable.protected ResourceBundle
getActionModelResourceBundle()
<B extends NamedBean>
Comparator<B>getNamedBeanComparator(Class<B> type)
Get the Comparator to be used for two NamedBeans.ThrottleManager
getThrottleManager()
SerialTrafficController
getTrafficController()
Provide access to the TrafficController for this particular connection.SerialTurnoutManager
getTurnoutManager()
void
setThrottleManager(ThrottleManager t)
void
setTrafficController(SerialTrafficController tc)
Methods inherited from class jmri.jmrix.DefaultSystemConnectionMemo
addToActionList, deregister, get, getActionFactory, getConsistManager, getDefaultOutputInterval, getDisabled, getOutputInterval, getSystemPrefix, getUserName, isDirty, isRestartRequired, provides, register, removeFromActionList, 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
-
Field Details
-
Constructor Details
-
TmccSystemConnectionMemo
public TmccSystemConnectionMemo() -
TmccSystemConnectionMemo
Ctor- Parameters:
tc
- the associated TrafficController
-
TmccSystemConnectionMemo
-
-
Method Details
-
getActionModelResourceBundle
- Specified by:
getActionModelResourceBundle
in classDefaultSystemConnectionMemo
-
getNamedBeanComparator
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
- Specified by:
getNamedBeanComparator
in classDefaultSystemConnectionMemo
- Type Parameters:
B
- the type of NamedBean- Parameters:
type
- the class of NamedBean- Returns:
- the Comparator
-
getTrafficController
Provide access to the TrafficController for this particular connection.- Returns:
- the traffic controller for this connection
-
setTrafficController
- Parameters:
tc
- the new TrafficController to set
-
configureManagers
Configure the common managers for tmcc connections. This puts the common manager config in one place.- Specified by:
configureManagers
in interfaceConfiguringSystemConnectionMemo
-
getThrottleManager
-
setThrottleManager
-
getTurnoutManager
-
dispose
Description copied from interface:Disposable
Called 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:
dispose
in interfaceDisposable
- Specified by:
dispose
in interfaceSystemConnectionMemo
- Overrides:
dispose
in classDefaultSystemConnectionMemo
-