Package jmri.jmrix.nce
Class NceReply
java.lang.Object
jmri.jmrix.AbstractMessage
jmri.jmrix.AbstractMRReply
jmri.jmrix.nce.NceReply
- All Implemented Interfaces:
Message
Carries the reply to an NceMessage.
Some rudimentary support is provided for the "binary" option.
-
Field Summary
FieldsFields inherited from class jmri.jmrix.AbstractMRReply
DEFAULTMAXSIZEFields inherited from class jmri.jmrix.AbstractMessage
_dataChars, _nDataChars -
Constructor Summary
ConstructorsConstructorDescriptionNceReply(NceTrafficController tc, String s) NceReply(NceTrafficController tc, NceReply l) -
Method Summary
Modifier and TypeMethodDescriptionbooleanExamine message to see if it is an asynchronous sensor (AIU) state reportbooleanGet flag for Unsolicited.intExtract poll values from binary replyprotected intskipPrefix(int index) intvalue()Methods inherited from class jmri.jmrix.AbstractMRReply
flush, getOpCode, isBinary, isRetransmittableErrorMsg, match, maxSize, setBinary, setElement, setOpCode, setUnsolicited, skipWhiteSpace, toStringMethods inherited from class jmri.jmrix.AbstractMessage
equals, getElement, getNumDataElements, hashCode
-
Field Details
-
tc
-
-
Constructor Details
-
NceReply
-
NceReply
-
NceReply
-
-
Method Details
-
skipPrefix
- Specified by:
skipPrefixin classAbstractMRReply
-
value
- Overrides:
valuein classAbstractMRReply
-
pollValue
Extract poll values from binary reply- Overrides:
pollValuein classAbstractMRReply
-
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 KSC 24 Aug 2024 - seems to never match a reply
-
isUnsolicited
Description copied from class:AbstractMRReplyGet flag for Unsolicited.- Overrides:
isUnsolicitedin classAbstractMRReply- Returns:
- true if Unsolicited, else false.
-
toMonitorString
- Returns:
- a human-readable representation of the message.
-