jmri.jmris
Class AbstractSensorServer
java.lang.Object
jmri.jmris.AbstractSensorServer
- Direct Known Subclasses:
- JmriSRCPSensorServer, SimpleSensorServer
public abstract class AbstractSensorServer
- extends Object
Abstract interface between the a JMRI sensor and a
network connection
- Author:
- Paul Bender Copyright (C) 2010
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
sensors
protected ArrayList<String> sensors
AbstractSensorServer
public AbstractSensorServer()
sendStatus
public abstract void sendStatus(String sensor,
int Status)
throws IOException
- Throws:
IOException
sendErrorStatus
public abstract void sendErrorStatus(String sensor)
throws IOException
- Throws:
IOException
parseStatus
public abstract void parseStatus(String statusString)
throws JmriException,
IOException
- Throws:
JmriException
IOException
addSensorToList
protected void addSensorToList(String sensorName)
removeSensorFromList
protected void removeSensorFromList(String sensorName)
setSensorActive
public void setSensorActive(String sensorName)
setSensorInactive
public void setSensorInactive(String sensorName)
Copyright © 1997 - 2011 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.
Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: