Package jmri.jmrix.tams
Class TamsPowerManager
- java.lang.Object
-
- jmri.beans.PropertyChangeSupport
-
- jmri.managers.AbstractPowerManager<TamsSystemConnectionMemo>
-
- jmri.jmrix.tams.TamsPowerManager
-
- All Implemented Interfaces:
java.util.EventListener
,PropertyChangeFirer
,PropertyChangeProvider
,AbstractMRListener
,TamsListener
,PowerManager
public class TamsPowerManager extends AbstractPowerManager<TamsSystemConnectionMemo> implements TamsListener
PowerManager implementation for controlling layout power using binary P50x commands Based on work by Bob Jacobsen and Kevin Dickerson
-
-
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
lastRequest
(package private) java.lang.Thread
tamsPowerMonitorThread
(package private) TamsTrafficController
tc
(package private) TamsMessage
tm
-
Fields inherited from class jmri.managers.AbstractPowerManager
memo, power
-
Fields inherited from class jmri.beans.PropertyChangeSupport
propertyChangeSupport
-
-
Constructor Summary
Constructors Constructor Description TamsPowerManager(TamsTrafficController ttc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
void
message(TamsMessage tm)
void
reply(TamsReply tr)
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
-
-
-
-
Field Detail
-
tm
TamsMessage tm
-
tamsPowerMonitorThread
java.lang.Thread tamsPowerMonitorThread
-
lastRequest
int lastRequest
-
-
Constructor Detail
-
TamsPowerManager
public TamsPowerManager(TamsTrafficController ttc)
-
-
Method Detail
-
setPower
public void setPower(int v) throws JmriException
Description copied from class:AbstractPowerManager
- Specified by:
setPower
in interfacePowerManager
- Overrides:
setPower
in classAbstractPowerManager<TamsSystemConnectionMemo>
- Throws:
JmriException
-
dispose
public void dispose() throws JmriException
- Specified by:
dispose
in interfacePowerManager
- Throws:
JmriException
-
reply
public void reply(TamsReply tr)
- Specified by:
reply
in interfaceTamsListener
-
message
public void message(TamsMessage tm)
- Specified by:
message
in interfaceTamsListener
-
-