jmri.jmrix.mrc
Class MrcReply
java.lang.Object
jmri.jmrix.AbstractMessage
jmri.jmrix.AbstractMRReply
jmri.jmrix.mrc.MrcReply
- All Implemented Interfaces:
- Message
public class MrcReply
- extends AbstractMRReply
Carries the reply to an MrcMessage.
- Author:
- Bob Jacobsen Copyright (C) 2001, 2004
|
Method Summary |
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 |
MrcReply
public MrcReply()
MrcReply
public MrcReply(String s)
MrcReply
public MrcReply(MrcReply l)
skipPrefix
protected int skipPrefix(int index)
- Specified by:
skipPrefix in class AbstractMRReply
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
formnat "CVnnnvv" where vv is the hexadecimal value
or "Vnvv" where vv is the hexadecimal value.
- Overrides:
value in class AbstractMRReply
Copyright © 1997 - 2011 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.
Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: