jmri.jmrix.nce
Class NceReply
java.lang.Object
jmri.jmrix.AbstractMessage
jmri.jmrix.AbstractMRReply
jmri.jmrix.nce.NceReply
- All Implemented Interfaces:
- Message
public class NceReply
- extends AbstractMRReply
Carries the reply to an NceMessage.
Some rudimentary support is provided for the "binary" option.
- Author:
- Bob Jacobsen Copyright (C) 2001, Daniel Boudreau Copyright (C) 2007
| Methods inherited from class jmri.jmrix.AbstractMRReply |
flush, getOpCode, isBinary, isRetransmittableErrorMsg, match, maxSize, setBinary, setElement, setOpCode, setUnsolicited, skipWhiteSpace, toString |
NceReply
public NceReply(NceTrafficController tc)
NceReply
public NceReply(NceTrafficController tc,
String s)
NceReply
public NceReply(NceTrafficController tc,
NceReply l)
skipPrefix
protected int skipPrefix(int index)
- Specified by:
skipPrefix in class AbstractMRReply
value
public int value()
- Overrides:
value in class AbstractMRReply
pollValue
public int pollValue()
- Extract poll values from binary reply
- Overrides:
pollValue in class AbstractMRReply
isSensorMessage
public boolean isSensorMessage()
- Examine message to see if it is an asynchronous sensor (AIU) state report
- Returns:
- true if message asynch sensor message
Boudreau: Improved detection to check three bytes and message length
of exactly 3
isUnsolicited
public boolean isUnsolicited()
- Overrides:
isUnsolicited 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: