Package jmri.jmrix.secsi
Class SecsiSystemConnectionMemo
java.lang.Object
jmri.beans.UnboundBean
jmri.beans.Bean
jmri.jmrix.DefaultSystemConnectionMemo
jmri.jmrix.secsi.SecsiSystemConnectionMemo
- All Implemented Interfaces:
BeanInterface
,PropertyChangeFirer
,PropertyChangeProvider
,Disposable
,ConfiguringSystemConnectionMemo
,SystemConnectionMemo
public class SecsiSystemConnectionMemo extends DefaultSystemConnectionMemo implements ConfiguringSystemConnectionMemo
Minimum required implementation.
-
Field Summary
Fields inherited from interface jmri.SystemConnectionMemo
DISABLED, INTERVAL, SYSTEM_PREFIX, USER_NAME
-
Constructor Summary
Constructors Constructor Description SecsiSystemConnectionMemo()
SecsiSystemConnectionMemo(String prefix, String name)
-
Method Summary
Modifier and Type Method Description void
configureManagers()
Configure the common managers associated with the System Connection memo.protected ResourceBundle
getActionModelResourceBundle()
LightManager
getLightManager()
Provide access to the LightManager for this particular connection.<B extends NamedBean>
Comparator<B>getNamedBeanComparator(Class<B> type)
Get the Comparator to be used for two NamedBeans.SensorManager
getSensorManager()
Provide access to the SensorManager for this particular connection.SerialTrafficController
getTrafficController()
Get the traffic controller instance associated with this connection memo.TurnoutManager
getTurnoutManager()
Provide access to the TurnoutManager for this particular connection.void
setLightManager(SerialLightManager l)
void
setSensorManager(SerialSensorManager s)
void
setTrafficController(SerialTrafficController s)
Set the traffic controller instance associated with this connection memo.void
setTurnoutManager(SerialTurnoutManager t)
Methods inherited from class jmri.jmrix.DefaultSystemConnectionMemo
addToActionList, deregister, dispose, 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
dispose, get, getActionFactory, getDefaultOutputInterval, getDisabled, getOutputInterval, getSystemPrefix, getUserName, isDirty, isRestartRequired, provides, register, setDisabled, setOutputInterval, setSystemPrefix, setUserName
-
Constructor Details
-
Method Details
-
setTrafficController
Set the traffic controller instance associated with this connection memo.- Parameters:
s
- jmri.jmrix.secsi.SerialTrafficController object to use.
-
getTrafficController
Get the traffic controller instance associated with this connection memo.- Returns:
- traffic controller, new TC provided if null.
-
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
-
configureManagers
Description copied from interface:ConfiguringSystemConnectionMemo
Configure the common managers associated with the System Connection memo.- Specified by:
configureManagers
in interfaceConfiguringSystemConnectionMemo
-
getSensorManager
Provide access to the SensorManager for this particular connection.NOTE: SensorManager defaults to NULL
- Returns:
- sensor manager.
-
setSensorManager
-
getTurnoutManager
Provide access to the TurnoutManager for this particular connection.NOTE: TurnoutManager defaults to NULL
- Returns:
- turnout manager.
-
setTurnoutManager
-
getLightManager
Provide access to the LightManager for this particular connection.NOTE: LightManager defaults to NULL
- Returns:
- light manager.
-
setLightManager
-