Package jmri.jmris
Class AbstractPowerServer
- java.lang.Object
-
- jmri.jmris.AbstractPowerServer
-
- All Implemented Interfaces:
java.beans.PropertyChangeListener
,java.util.EventListener
- Direct Known Subclasses:
JmriSRCPPowerServer
,SimplePowerServer
public abstract class AbstractPowerServer extends java.lang.Object implements java.beans.PropertyChangeListener
Abstract interface between the JMRI power manager and a network connection
-
-
Field Summary
Fields Modifier and Type Field Description protected PowerManager
p
-
Constructor Summary
Constructors Constructor Description AbstractPowerServer()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
dispose()
protected boolean
mgrOK()
abstract void
parseStatus(java.lang.String statusString)
void
propertyChange(java.beans.PropertyChangeEvent ev)
abstract void
sendErrorStatus()
abstract void
sendStatus(int Status)
void
setOffStatus()
void
setOnStatus()
-
-
-
Field Detail
-
p
protected PowerManager p
-
-
Constructor Detail
-
AbstractPowerServer
public AbstractPowerServer()
-
-
Method Detail
-
mgrOK
protected boolean mgrOK()
-
setOnStatus
public void setOnStatus()
-
setOffStatus
public void setOffStatus()
-
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent ev)
- Specified by:
propertyChange
in interfacejava.beans.PropertyChangeListener
-
dispose
public void dispose()
-
sendStatus
public abstract void sendStatus(int Status) throws java.io.IOException
- Throws:
java.io.IOException
-
sendErrorStatus
public abstract void sendErrorStatus() throws java.io.IOException
- Throws:
java.io.IOException
-
parseStatus
public abstract void parseStatus(java.lang.String statusString) throws JmriException, java.io.IOException
- Throws:
JmriException
java.io.IOException
-
-