Package jmri.jmrix.xpa
Class XpaSystemConnectionMemo
- java.lang.Object
-
- jmri.beans.UnboundBean
-
- jmri.beans.Bean
-
- jmri.jmrix.DefaultSystemConnectionMemo
-
- jmri.jmrix.xpa.XpaSystemConnectionMemo
-
- All Implemented Interfaces:
BeanInterface
,PropertyChangeFirer
,PropertyChangeProvider
,Disposable
,SystemConnectionMemo
public class XpaSystemConnectionMemo extends DefaultSystemConnectionMemo
Provide the required SystemConnectionMemo for the XPA+Modem adapters.
-
-
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 XpaSystemConnectionMemo()
XpaSystemConnectionMemo(java.lang.String prefix, java.lang.String userName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.PowerManager
getPowerManager()
ThrottleManager
getThrottleManager()
TurnoutManager
getTurnoutManager()
XpaTrafficController
getXpaTrafficController()
Get the XpaTrafficController associated with this memo.void
setPowerManager(PowerManager p)
void
setThrottleManager(ThrottleManager t)
void
setTurnoutManager(TurnoutManager t)
void
setXpaTrafficController(XpaTrafficController t)
Set the XpaTrafficController associated with this memo.-
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
-
-
-
-
Field Detail
-
cf
final ComponentFactory cf
-
-
Constructor Detail
-
XpaSystemConnectionMemo
public XpaSystemConnectionMemo()
-
XpaSystemConnectionMemo
public XpaSystemConnectionMemo(java.lang.String prefix, java.lang.String userName)
-
-
Method Detail
-
getActionModelResourceBundle
protected java.util.ResourceBundle getActionModelResourceBundle()
- Specified by:
getActionModelResourceBundle
in classDefaultSystemConnectionMemo
-
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
- Specified by:
getNamedBeanComparator
in classDefaultSystemConnectionMemo
- Type Parameters:
B
- the type of NamedBean- Parameters:
type
- the class of NamedBean- Returns:
- the Comparator
-
setXpaTrafficController
public void setXpaTrafficController(XpaTrafficController t)
Set the XpaTrafficController associated with this memo.- Parameters:
t
- is the XpaTrafficController memo to set
-
getXpaTrafficController
public XpaTrafficController getXpaTrafficController()
Get the XpaTrafficController associated with this memo.- Returns:
- XpaTrafficController assocated with this memo
-
getThrottleManager
public ThrottleManager getThrottleManager()
-
setThrottleManager
public void setThrottleManager(ThrottleManager t)
-
getPowerManager
public PowerManager getPowerManager()
-
setPowerManager
public void setPowerManager(PowerManager p)
-
getTurnoutManager
public TurnoutManager getTurnoutManager()
-
setTurnoutManager
public void setTurnoutManager(TurnoutManager t)
-
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 classDefaultSystemConnectionMemo
-
-