Package jmri.jmris.simpleserver
Class SimpleLightServer
- java.lang.Object
-
- jmri.jmris.AbstractLightServer
-
- jmri.jmris.simpleserver.SimpleLightServer
-
public class SimpleLightServer extends AbstractLightServer
Simple Server interface between the JMRI light manager and a network connection
-
-
Constructor Summary
Constructors Constructor Description SimpleLightServer(java.io.DataInputStream inStream, java.io.DataOutputStream outStream)
SimpleLightServer(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 lightName)
void
sendStatus(java.lang.String lightName, int Status)
-
Methods inherited from class jmri.jmris.AbstractLightServer
addLightToList, dispose, initLight, lightOff, lightOn, removeLightFromList
-
-
-
-
Constructor Detail
-
SimpleLightServer
public SimpleLightServer(JmriConnection connection)
-
SimpleLightServer
public SimpleLightServer(java.io.DataInputStream inStream, java.io.DataOutputStream outStream)
-
-
Method Detail
-
sendStatus
public void sendStatus(java.lang.String lightName, int Status) throws java.io.IOException
- Specified by:
sendStatus
in classAbstractLightServer
- Throws:
java.io.IOException
-
sendErrorStatus
public void sendErrorStatus(java.lang.String lightName) throws java.io.IOException
- Specified by:
sendErrorStatus
in classAbstractLightServer
- Throws:
java.io.IOException
-
parseStatus
public void parseStatus(java.lang.String statusString) throws JmriException, java.io.IOException
- Specified by:
parseStatus
in classAbstractLightServer
- Throws:
JmriException
java.io.IOException
-
-