Package jmri.jmrix.easydcc
Class EasyDccReply
java.lang.Object
jmri.jmrix.AbstractMessage
jmri.jmrix.AbstractMRReply
jmri.jmrix.easydcc.EasyDccReply
- All Implemented Interfaces:
Message
Carries the reply to an EasyDccMessage.
-
Field Summary
Fields inherited from class jmri.jmrix.AbstractMRReply
DEFAULTMAXSIZEFields inherited from class jmri.jmrix.AbstractMessage
_dataChars, _nDataChars -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected intskipPrefix(int index) intvalue()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, toStringMethods inherited from class jmri.jmrix.AbstractMessage
equals, getElement, getNumDataElements, hashCodeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface jmri.jmrix.Message
toMonitorString
-
Constructor Details
-
EasyDccReply
public EasyDccReply() -
EasyDccReply
-
EasyDccReply
-
-
Method Details
-
skipPrefix
- Specified by:
skipPrefixin classAbstractMRReply
-
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:
valuein classAbstractMRReply- Returns:
- -1 if message can't be parsed
-