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