Package jmri.jmris.simpleserver
Class SimplePowerServer
- java.lang.Object
-
- jmri.jmris.AbstractPowerServer
-
- jmri.jmris.simpleserver.SimplePowerServer
-
- All Implemented Interfaces:
java.beans.PropertyChangeListener
,java.util.EventListener
public class SimplePowerServer extends AbstractPowerServer
Simple Server 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 SimplePowerServer(java.io.DataInputStream inStream, java.io.DataOutputStream outStream)
SimplePowerServer(JmriConnection cnctn)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
parseStatus(java.lang.String statusString)
void
sendErrorStatus()
void
sendStatus(int Status)
void
sendStatus(java.lang.String status)
-
Methods inherited from class jmri.jmris.AbstractPowerServer
dispose, mgrOK, propertyChange, setOffStatus, setOnStatus
-
-
-
-
Constructor Detail
-
SimplePowerServer
public SimplePowerServer(java.io.DataInputStream inStream, java.io.DataOutputStream outStream)
-
SimplePowerServer
public SimplePowerServer(JmriConnection cnctn)
-
-
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
-
sendStatus
public void sendStatus(java.lang.String status) throws java.io.IOException
- Throws:
java.io.IOException
-
-