Package jmri.jmrix.xpa
Class XpaPowerManager
- java.lang.Object
-
- jmri.beans.PropertyChangeSupport
-
- jmri.managers.AbstractPowerManager<XpaSystemConnectionMemo>
-
- jmri.jmrix.xpa.XpaPowerManager
-
- All Implemented Interfaces:
java.util.EventListener
,PropertyChangeFirer
,PropertyChangeProvider
,XpaListener
,PowerManager
public class XpaPowerManager extends AbstractPowerManager<XpaSystemConnectionMemo> implements XpaListener
PowerManager implementation for controlling layout power from an XPA+modem connected to an XpressNet based system.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class jmri.managers.AbstractPowerManager
AbstractPowerManager.TimeKeeper
-
-
Field Summary
Fields Modifier and Type Field Description (package private) int
onReply
(package private) XpaTrafficController
tc
(package private) boolean
waiting
-
Fields inherited from class jmri.managers.AbstractPowerManager
memo, power
-
Fields inherited from class jmri.beans.PropertyChangeSupport
propertyChangeSupport
-
-
Constructor Summary
Constructors Constructor Description XpaPowerManager(XpaSystemConnectionMemo memo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
void
message(XpaMessage m)
void
reply(XpaMessage m)
void
setPower(int v)
-
Methods inherited from class jmri.managers.AbstractPowerManager
firePowerPropertyChange, getPower, getUserName, timeSinceLastPowerOn
-
Methods inherited from class jmri.beans.PropertyChangeSupport
addPropertyChangeListener, addPropertyChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeListeners, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jmri.PowerManager
implementsIdle
-
Methods inherited from interface jmri.beans.PropertyChangeProvider
addPropertyChangeListener, addPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener
-
-
-
-
Constructor Detail
-
XpaPowerManager
public XpaPowerManager(XpaSystemConnectionMemo memo)
-
-
Method Detail
-
setPower
public void setPower(int v) throws JmriException
Description copied from class:AbstractPowerManager
- Specified by:
setPower
in interfacePowerManager
- Overrides:
setPower
in classAbstractPowerManager<XpaSystemConnectionMemo>
- Throws:
JmriException
-
dispose
public void dispose()
- Specified by:
dispose
in interfacePowerManager
-
reply
public void reply(XpaMessage m)
- Specified by:
reply
in interfaceXpaListener
-
message
public void message(XpaMessage m)
- Specified by:
message
in interfaceXpaListener
-
-