Package jmri.jmris.simpleserver
Class SimpleTurnoutServer
- java.lang.Object
-
- jmri.jmris.AbstractTurnoutServer
-
- jmri.jmris.simpleserver.SimpleTurnoutServer
-
public class SimpleTurnoutServer extends AbstractTurnoutServer
Simple Server interface between the JMRI turnout manager and a network connection
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class jmri.jmris.AbstractTurnoutServer
AbstractTurnoutServer.TurnoutListener
-
-
Field Summary
-
Fields inherited from class jmri.jmris.AbstractTurnoutServer
turnouts
-
-
Constructor Summary
Constructors Constructor Description SimpleTurnoutServer(java.io.DataInputStream inStream, java.io.DataOutputStream outStream)
SimpleTurnoutServer(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 turnoutName)
void
sendStatus(java.lang.String turnoutName, int Status)
-
Methods inherited from class jmri.jmris.AbstractTurnoutServer
addTurnoutToList, closeTurnout, dispose, getListener, initTurnout, removeTurnoutFromList, throwTurnout
-
-
-
-
Constructor Detail
-
SimpleTurnoutServer
public SimpleTurnoutServer(JmriConnection connection)
-
SimpleTurnoutServer
public SimpleTurnoutServer(java.io.DataInputStream inStream, java.io.DataOutputStream outStream)
-
-
Method Detail
-
sendStatus
public void sendStatus(java.lang.String turnoutName, int Status) throws java.io.IOException
- Specified by:
sendStatus
in classAbstractTurnoutServer
- Throws:
java.io.IOException
-
sendErrorStatus
public void sendErrorStatus(java.lang.String turnoutName) throws java.io.IOException
- Specified by:
sendErrorStatus
in classAbstractTurnoutServer
- Throws:
java.io.IOException
-
parseStatus
public void parseStatus(java.lang.String statusString) throws JmriException, java.io.IOException
- Specified by:
parseStatus
in classAbstractTurnoutServer
- Throws:
JmriException
java.io.IOException
-
-