Package jmri.jmris.srcp
Class JmriSRCPTurnoutServer
- java.lang.Object
-
- jmri.jmris.AbstractTurnoutServer
-
- jmri.jmris.srcp.JmriSRCPTurnoutServer
-
public class JmriSRCPTurnoutServer extends AbstractTurnoutServer
SRCP Server interface between the JMRI Turnout manager and a network connection
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) class
JmriSRCPTurnoutServer.TurnoutListener
-
Field Summary
-
Fields inherited from class jmri.jmris.AbstractTurnoutServer
turnouts
-
-
Constructor Summary
Constructors Constructor Description JmriSRCPTurnoutServer(java.io.DataInputStream inStream, java.io.OutputStream outStream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected JmriSRCPTurnoutServer.TurnoutListener
getListener(java.lang.String turnoutName)
void
initTurnout(int bus, int address, java.lang.String protocol)
void
parseStatus(int bus, int address, int value)
void
parseStatus(java.lang.String statusString)
void
sendErrorStatus(java.lang.String turnoutName)
void
sendStatus(int bus, int address)
void
sendStatus(java.lang.String turnoutName, int Status)
-
Methods inherited from class jmri.jmris.AbstractTurnoutServer
addTurnoutToList, closeTurnout, dispose, initTurnout, removeTurnoutFromList, throwTurnout
-
-
-
-
Constructor Detail
-
JmriSRCPTurnoutServer
public JmriSRCPTurnoutServer(java.io.DataInputStream inStream, java.io.OutputStream 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
-
sendStatus
public void sendStatus(int bus, int address) throws java.io.IOException
- 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
-
initTurnout
public void initTurnout(int bus, int address, java.lang.String protocol) throws JmriException, java.io.IOException
- Throws:
JmriException
java.io.IOException
-
parseStatus
public void parseStatus(int bus, int address, int value) throws JmriException, java.io.IOException
- Throws:
JmriException
java.io.IOException
-
getListener
protected JmriSRCPTurnoutServer.TurnoutListener getListener(java.lang.String turnoutName)
- Overrides:
getListener
in classAbstractTurnoutServer
-
-