jmri.jmrix.ecos
Class EcosPowerManager

Show UML class diagram
java.lang.Object
  extended by jmri.jmrix.ecos.EcosPowerManager
All Implemented Interfaces:
EventListener, AbstractMRListener, EcosListener, PowerManager

public class EcosPowerManager
extends Object
implements PowerManager, EcosListener

PowerManager implementation for controlling layout power.


Field Summary
(package private)  PropertyChangeSupport pcs
           
(package private)  int power
           
(package private)  EcosTrafficController tc
           
 
Fields inherited from interface jmri.PowerManager
OFF, ON, UNKNOWN
 
Constructor Summary
EcosPowerManager(EcosTrafficController etc)
           
 
Method Summary
 void addPropertyChangeListener(PropertyChangeListener l)
           
 void dispose()
           
protected  void firePropertyChange(String p, Object old, Object n)
           
 int getPower()
           
 String getUserName()
           
 void message(EcosMessage m)
           
 void removePropertyChangeListener(PropertyChangeListener l)
           
 void reply(EcosReply m)
           
 void setPower(int v)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tc

EcosTrafficController tc

power

int power

pcs

PropertyChangeSupport pcs
Constructor Detail

EcosPowerManager

public EcosPowerManager(EcosTrafficController etc)
Method Detail

getUserName

public String getUserName()
Specified by:
getUserName in interface PowerManager

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()
             throws JmriException
Specified by:
dispose in interface PowerManager
Throws:
JmriException

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

reply

public void reply(EcosReply m)
Specified by:
reply in interface EcosListener

message

public void message(EcosMessage m)
Specified by:
message in interface EcosListener


Copyright © 1997-2014 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: Get JMRI Model Railroad Interface at SourceForge.net. Fast, secure and Free Open Source software downloads