Package jmri.jmris.simpleserver
Class SimpleSignalHeadServer
- java.lang.Object
-
- jmri.jmris.AbstractSignalHeadServer
-
- jmri.jmris.simpleserver.SimpleSignalHeadServer
-
public class SimpleSignalHeadServer extends AbstractSignalHeadServer
Simple Server interface between the JMRI Sensor manager and a network connection
-
-
Constructor Summary
Constructors Constructor Description SimpleSignalHeadServer(java.io.DataInputStream inStream, java.io.DataOutputStream outStream)
SimpleSignalHeadServer(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 signalHeadName)
void
sendStatus(java.lang.String signalHeadName, int Status)
-
Methods inherited from class jmri.jmris.AbstractSignalHeadServer
addSignalHeadToList, appearanceForName, dispose, nameForAppearance, removeSignalHeadFromList, setSignalHeadAppearance, setSignalHeadAppearance
-
-
-
-
Constructor Detail
-
SimpleSignalHeadServer
public SimpleSignalHeadServer(JmriConnection connection)
-
SimpleSignalHeadServer
public SimpleSignalHeadServer(java.io.DataInputStream inStream, java.io.DataOutputStream outStream)
-
-
Method Detail
-
sendStatus
public void sendStatus(java.lang.String signalHeadName, int Status) throws java.io.IOException
- Specified by:
sendStatus
in classAbstractSignalHeadServer
- Throws:
java.io.IOException
-
sendErrorStatus
public void sendErrorStatus(java.lang.String signalHeadName) throws java.io.IOException
- Specified by:
sendErrorStatus
in classAbstractSignalHeadServer
- Throws:
java.io.IOException
-
parseStatus
public void parseStatus(java.lang.String statusString) throws JmriException, java.io.IOException
- Specified by:
parseStatus
in classAbstractSignalHeadServer
- Throws:
JmriException
java.io.IOException
-
-