Package jmri.jmris.simpleserver
Class SimpleSensorServer
- java.lang.Object
-
- jmri.jmris.AbstractSensorServer
-
- jmri.jmris.simpleserver.SimpleSensorServer
-
public class SimpleSensorServer extends AbstractSensorServer
Simple Server interface between the JMRI Sensor manager and a network connection
-
-
Constructor Summary
Constructors Constructor Description SimpleSensorServer(java.io.DataInputStream inStream, java.io.DataOutputStream outStream)
SimpleSensorServer(JmriConnection connection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
parseStatus(java.lang.String statusString)
void
sendErrorStatus(java.lang.String sensorName)
void
sendStatus(java.lang.String sensorName, int Status)
-
Methods inherited from class jmri.jmris.AbstractSensorServer
addSensorToList, dispose, initSensor, removeSensorFromList, setSensorActive, setSensorInactive
-
-
-
-
Constructor Detail
-
SimpleSensorServer
public SimpleSensorServer(JmriConnection connection)
-
SimpleSensorServer
public SimpleSensorServer(java.io.DataInputStream inStream, java.io.DataOutputStream outStream)
-
-
Method Detail
-
sendStatus
public void sendStatus(java.lang.String sensorName, int Status) throws java.io.IOException
- Specified by:
sendStatus
in classAbstractSensorServer
- Throws:
java.io.IOException
-
sendErrorStatus
public void sendErrorStatus(java.lang.String sensorName) throws java.io.IOException
- Specified by:
sendErrorStatus
in classAbstractSensorServer
- Throws:
java.io.IOException
-
parseStatus
public void parseStatus(java.lang.String statusString) throws JmriException, java.io.IOException
- Specified by:
parseStatus
in classAbstractSensorServer
- Throws:
JmriException
java.io.IOException
-
-