jmri.jmris.simpleserver
Class SimpleSensorServer

java.lang.Object
  extended by jmri.jmris.AbstractSensorServer
      extended by jmri.jmris.simpleserver.SimpleSensorServer

public class SimpleSensorServer
extends AbstractSensorServer

Simple Server interface between the JMRI Sensor manager and a network connection

Author:
Paul Bender Copyright (C) 2010

Field Summary
 
Fields inherited from class jmri.jmris.AbstractSensorServer
sensors
 
Constructor Summary
SimpleSensorServer(DataInputStream inStream, DataOutputStream outStream)
           
 
Method Summary
 void parseStatus(String statusString)
           
 void sendErrorStatus(String sensorName)
           
 void sendStatus(String sensorName, int Status)
           
 
Methods inherited from class jmri.jmris.AbstractSensorServer
addSensorToList, removeSensorFromList, setSensorActive, setSensorInactive
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleSensorServer

public SimpleSensorServer(DataInputStream inStream,
                          DataOutputStream outStream)
Method Detail

sendStatus

public void sendStatus(String sensorName,
                       int Status)
                throws IOException
Specified by:
sendStatus in class AbstractSensorServer
Throws:
IOException

sendErrorStatus

public void sendErrorStatus(String sensorName)
                     throws IOException
Specified by:
sendErrorStatus in class AbstractSensorServer
Throws:
IOException

parseStatus

public void parseStatus(String statusString)
                 throws JmriException,
                        IOException
Specified by:
parseStatus in class AbstractSensorServer
Throws:
JmriException
IOException


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: Get JMRI Model Railroad Interface at SourceForge.net. Fast, secure and Free Open Source software downloads