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 voidparseStatus(java.lang.String statusString)voidsendErrorStatus(java.lang.String sensorName)voidsendStatus(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:
sendStatusin classAbstractSensorServer- Throws:
java.io.IOException
-
sendErrorStatus
public void sendErrorStatus(java.lang.String sensorName) throws java.io.IOException
- Specified by:
sendErrorStatusin classAbstractSensorServer- Throws:
java.io.IOException
-
parseStatus
public void parseStatus(java.lang.String statusString) throws JmriException, java.io.IOException
- Specified by:
parseStatusin classAbstractSensorServer- Throws:
JmriExceptionjava.io.IOException
-
-