Package jmri.jmris
Class AbstractSensorServer
- java.lang.Object
-
- jmri.jmris.AbstractSensorServer
-
- Direct Known Subclasses:
JmriSRCPSensorServer
,SimpleSensorServer
public abstract class AbstractSensorServer extends java.lang.Object
Abstract interface between the a JMRI sensor and a network connection
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) class
AbstractSensorServer.SensorListener
-
Constructor Summary
Constructors Constructor Description AbstractSensorServer()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
addSensorToList(java.lang.String sensorName)
void
dispose()
Sensor
initSensor(java.lang.String sensorName)
abstract void
parseStatus(java.lang.String statusString)
protected void
removeSensorFromList(java.lang.String sensorName)
abstract void
sendErrorStatus(java.lang.String sensor)
abstract void
sendStatus(java.lang.String sensor, int Status)
void
setSensorActive(java.lang.String sensorName)
void
setSensorInactive(java.lang.String sensorName)
-
-
-
Constructor Detail
-
AbstractSensorServer
public AbstractSensorServer()
-
-
Method Detail
-
sendStatus
public abstract void sendStatus(java.lang.String sensor, int Status) throws java.io.IOException
- Throws:
java.io.IOException
-
sendErrorStatus
public abstract void sendErrorStatus(java.lang.String sensor) 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
-
addSensorToList
protected void addSensorToList(java.lang.String sensorName)
-
removeSensorFromList
protected void removeSensorFromList(java.lang.String sensorName)
-
initSensor
public Sensor initSensor(java.lang.String sensorName)
-
setSensorActive
public void setSensorActive(java.lang.String sensorName)
-
dispose
public void dispose()
-
setSensorInactive
public void setSensorInactive(java.lang.String sensorName)
-
-