Package jmri.jmris.srcp
Class JmriSRCPProgrammerServer
- java.lang.Object
-
- jmri.jmris.AbstractProgrammerServer
-
- jmri.jmris.srcp.JmriSRCPProgrammerServer
-
- All Implemented Interfaces:
java.util.EventListener
,ProgListener
public class JmriSRCPProgrammerServer extends AbstractProgrammerServer
SRCP interface between the JMRI service mode programmer and a network connection
-
-
Field Summary
-
Fields inherited from class jmri.jmris.AbstractProgrammerServer
lastCV
-
Fields inherited from interface jmri.ProgListener
CommError, ConfirmFailed, FailedTimeout, NoAck, NoLocoDetected, NotImplemented, OK, ProgrammerBusy, ProgrammingShort, SequenceError, UnknownError, UserAborted
-
-
Constructor Summary
Constructors Constructor Description JmriSRCPProgrammerServer(java.io.OutputStream outStream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
parseRequest(java.lang.String statusString)
void
sendNotAvailableStatus()
void
sendStatus(int CV, int value, int status)
-
Methods inherited from class jmri.jmris.AbstractProgrammerServer
dispose, getProgrammer, programmingOpReply, readCV, writeCV
-
-
-
-
Constructor Detail
-
JmriSRCPProgrammerServer
public JmriSRCPProgrammerServer(java.io.OutputStream outStream)
-
-
Method Detail
-
sendStatus
public void sendStatus(int CV, int value, int status) throws java.io.IOException
- Specified by:
sendStatus
in classAbstractProgrammerServer
- Throws:
java.io.IOException
-
sendNotAvailableStatus
public void sendNotAvailableStatus() throws java.io.IOException
- Specified by:
sendNotAvailableStatus
in classAbstractProgrammerServer
- Throws:
java.io.IOException
-
parseRequest
public void parseRequest(java.lang.String statusString) throws JmriException, java.io.IOException
- Specified by:
parseRequest
in classAbstractProgrammerServer
- Throws:
JmriException
java.io.IOException
-
-