Package jmri.jmrix.srcp
Class SRCPReply
- java.lang.Object
-
- jmri.jmrix.AbstractMessage
-
- jmri.jmrix.AbstractMRReply
-
- jmri.jmrix.srcp.SRCPReply
-
- All Implemented Interfaces:
Message
public class SRCPReply extends AbstractMRReply
Carries the reply to an SRCPMessage.
-
-
Field Summary
-
Fields inherited from class jmri.jmrix.AbstractMRReply
DEFAULTMAXSIZE
-
Fields inherited from class jmri.jmrix.AbstractMessage
_dataChars, _nDataChars
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getResponseCode()
boolean
isResponseOK()
boolean
isUnsolicited()
Get flag for Unsolicited.protected int
skipPrefix(int index)
int
value()
Extracts Read-CV returned value from a message.-
Methods inherited from class jmri.jmrix.AbstractMRReply
flush, getOpCode, isBinary, isRetransmittableErrorMsg, match, maxSize, pollValue, setBinary, setElement, setOpCode, setUnsolicited, skipWhiteSpace, toString
-
Methods inherited from class jmri.jmrix.AbstractMessage
equals, getElement, getNumDataElements, hashCode
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface jmri.jmrix.Message
toMonitorString
-
-
-
-
Method Detail
-
isResponseOK
public boolean isResponseOK()
-
getResponseCode
public java.lang.String getResponseCode()
-
skipPrefix
protected int skipPrefix(int index)
- Specified by:
skipPrefix
in classAbstractMRReply
-
value
public int value()
Extracts Read-CV returned value from a message. Returns -1 if message can't be parsed. Expects a message of the form 1264343601.156 100 INFO 1 SM -1 CV 8 99- Overrides:
value
in classAbstractMRReply
-
isUnsolicited
public boolean isUnsolicited()
Description copied from class:AbstractMRReply
Get flag for Unsolicited.- Overrides:
isUnsolicited
in classAbstractMRReply
- Returns:
- true if Unsolicited, else false.
-
-