Package jmri.jmrix.jmriclient
Class JMRIClientReply
- java.lang.Object
-
- jmri.jmrix.AbstractMessage
-
- jmri.jmrix.AbstractMRReply
-
- jmri.jmrix.jmriclient.JMRIClientReply
-
- All Implemented Interfaces:
Message
public class JMRIClientReply extends AbstractMRReply
Carries the reply to an JMRIClientMessage.
-
-
Field Summary
-
Fields inherited from class jmri.jmrix.AbstractMRReply
DEFAULTMAXSIZE
-
Fields inherited from class jmri.jmrix.AbstractMessage
_dataChars, _nDataChars
-
-
Constructor Summary
Constructors Constructor Description JMRIClientReply()
JMRIClientReply(java.lang.String s)
JMRIClientReply(JMRIClientReply l)
-
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
-
-
-
-
Constructor Detail
-
JMRIClientReply
public JMRIClientReply()
-
JMRIClientReply
public JMRIClientReply(java.lang.String s)
-
JMRIClientReply
public JMRIClientReply(JMRIClientReply l)
-
-
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.
-
-