Package jmri.jmrix.easydcc
Class EasyDccReply
- java.lang.Object
-
- jmri.jmrix.AbstractMessage
-
- jmri.jmrix.AbstractMRReply
-
- jmri.jmrix.easydcc.EasyDccReply
-
- All Implemented Interfaces:
Message
public class EasyDccReply extends AbstractMRReply
Carries the reply to an EasyDccMessage.
-
-
Field Summary
-
Fields inherited from class jmri.jmrix.AbstractMRReply
DEFAULTMAXSIZE
-
Fields inherited from class jmri.jmrix.AbstractMessage
_dataChars, _nDataChars
-
-
Constructor Summary
Constructors Constructor Description EasyDccReply()
EasyDccReply(java.lang.String s)
EasyDccReply(EasyDccReply l)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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, isUnsolicited, 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
-
EasyDccReply
public EasyDccReply()
-
EasyDccReply
public EasyDccReply(java.lang.String s)
-
EasyDccReply
public EasyDccReply(EasyDccReply l)
-
-
Method Detail
-
skipPrefix
protected int skipPrefix(int index)
- Specified by:
skipPrefix
in classAbstractMRReply
-
value
public int value()
Extracts Read-CV returned value from a message. Expects a message of the format "CVnnnvv" where vv is the hexadecimal value or "Vnvv" where vv is the hexadecimal value.- Overrides:
value
in classAbstractMRReply
- Returns:
- -1 if message can't be parsed
-
-