jmri.jmrix.loconet
Class LnPowerManager
java.lang.Object
jmri.jmrix.loconet.LnPowerManager
- All Implemented Interfaces:
- EventListener, LocoNetListener, PowerManager
- Direct Known Subclasses:
- LnPr2PowerManager
public class LnPowerManager
- extends Object
- implements PowerManager, LocoNetListener
PowerManager implementation for controlling layout power
Some of the message formats used in this class are Copyright Digitrax, Inc.
and used with permission as part of the JMRI project. That permission
does not extend to uses in other software products. If you wish to
use this code, algorithm or these message formats outside of JMRI, please
contact Digitrax Inc for separate permission.
- Author:
- Bob Jacobsen Copyright (C) 2001
|
Field Summary |
protected int |
power
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
power
protected int power
LnPowerManager
public LnPowerManager()
setPower
public void setPower(int v)
throws JmriException
- Specified by:
setPower in interface PowerManager
- Throws:
JmriException
getPower
public int getPower()
- Specified by:
getPower in interface PowerManager
dispose
public void dispose()
- Specified by:
dispose in interface PowerManager
addPropertyChangeListener
public void addPropertyChangeListener(PropertyChangeListener l)
- Specified by:
addPropertyChangeListener in interface PowerManager
firePropertyChange
protected void firePropertyChange(String p,
Object old,
Object n)
removePropertyChangeListener
public void removePropertyChangeListener(PropertyChangeListener l)
- Specified by:
removePropertyChangeListener in interface PowerManager
message
public void message(LocoNetMessage m)
- Description copied from interface:
LocoNetListener
- Member function that will be invoked by a LocoNetInterface implementation
to forward a LocoNet message from the layout.
- Specified by:
message in interface LocoNetListener
- Parameters:
m - The received LocoNet message. Note that this same object
may be presented to multiple users. It should not be
modified here.
Copyright © 1997 - 2009 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.
Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: