Package jmri.jmrix.lenz
Class XNetSystemConnectionMemo
java.lang.Object
jmri.beans.UnboundBean
jmri.beans.Bean
jmri.jmrix.DefaultSystemConnectionMemo
jmri.jmrix.lenz.XNetSystemConnectionMemo
- All Implemented Interfaces:
BeanInterface
,PropertyChangeFirer
,PropertyChangeProvider
,Disposable
,SystemConnectionMemo
- Direct Known Subclasses:
EliteXNetSystemConnectionMemo
public class XNetSystemConnectionMemo extends DefaultSystemConnectionMemo
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.
-
Field Summary
Fields inherited from interface jmri.SystemConnectionMemo
DISABLED, INTERVAL, SYSTEM_PREFIX, USER_NAME
-
Constructor Summary
Constructors Constructor Description XNetSystemConnectionMemo()
XNetSystemConnectionMemo(XNetTrafficController xt)
-
Method Summary
Modifier and Type Method Description void
dispose()
Called when disposing of a disposable.protected ResourceBundle
getActionModelResourceBundle()
CommandStation
getCommandStation()
Provide access to the Command Station for this particular connection.LenzCommandStation
getLenzCommandStation()
Provide access to the Lenz Command Station for this particular connection.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.PowerManager
getPowerManager()
XNetProgrammerManager
getProgrammerManager()
Provide access to the Programmer for this particular connection.SensorManager
getSensorManager()
Provide access to the SensorManager for this particular connection.ThrottleManager
getThrottleManager()
TurnoutManager
getTurnoutManager()
Provide access to the TurnoutManager for this particular connection.XNetTrafficController
getXNetTrafficController()
Provide access to the TrafficController for this particular connection.void
setCommandStation(CommandStation c)
void
setLenzCommandStation(LenzCommandStation c)
void
setLightManager(LightManager l)
void
setPowerManager(PowerManager p)
void
setProgrammerManager(XNetProgrammerManager p)
void
setSensorManager(SensorManager s)
void
setThrottleManager(ThrottleManager t)
void
setTurnoutManager(TurnoutManager t)
void
setXNetTrafficController(XNetTrafficController xt)
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
-
Constructor Details
-
Method Details
-
getXNetTrafficController
Provide access to the TrafficController for this particular connection.- Returns:
- traffic controller.
-
setXNetTrafficController
-
getProgrammerManager
Provide access to the Programmer for this particular connection.NOTE: Programmer defaults to null
- Returns:
- programmer manager.
-
setProgrammerManager
-
getThrottleManager
-
setThrottleManager
-
getPowerManager
-
setPowerManager
-
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
-
getCommandStation
Provide access to the Command Station for this particular connection.NOTE: Command Station defaults to NULL
- Returns:
- command station.
-
setCommandStation
-
getLenzCommandStation
Provide access to the Lenz Command Station for this particular connection.NOTE: Lenz Command Station defaults to NULL
- Returns:
- Lenz command station.
-
setLenzCommandStation
-
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
-
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
-