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 voidparseStatus(java.lang.String statusString)voidsendErrorStatus(java.lang.String lightName)voidsendStatus(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:
sendStatusin classAbstractLightServer- Throws:
java.io.IOException
-
sendErrorStatus
public void sendErrorStatus(java.lang.String lightName) throws java.io.IOException
- Specified by:
sendErrorStatusin classAbstractLightServer- Throws:
java.io.IOException
-
parseStatus
public void parseStatus(java.lang.String statusString) throws JmriException, java.io.IOException
- Specified by:
parseStatusin classAbstractLightServer- Throws:
JmriExceptionjava.io.IOException
-
-