Package jmri.jmrix.cmri.serial
Class SerialReply
- java.lang.Object
-
- jmri.jmrix.AbstractMessage
-
- jmri.jmrix.AbstractMRReply
-
- jmri.jmrix.cmri.serial.SerialReply
-
- All Implemented Interfaces:
Message
public class SerialReply extends AbstractMRReply
Contains the data payload of a CMRI serial reply packet. Note that _only_ the payload, not the header or trailer, nor the padding DLE characters are included. But it does include addressing characters, etc.
-
-
Field Summary
-
Fields inherited from class jmri.jmrix.AbstractMRReply
DEFAULTMAXSIZE
-
Fields inherited from class jmri.jmrix.AbstractMessage
_dataChars, _nDataChars
-
-
Constructor Summary
Constructors Constructor Description SerialReply()
SerialReply(java.lang.String s)
SerialReply(SerialReply l)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getUA()
boolean
isDGACK()
boolean
isDGNAK()
boolean
isDGREAD()
boolean
isDGWRITE()
boolean
isEOT()
boolean
isQUERY()
boolean
isRcv()
protected int
skipPrefix(int index)
java.lang.String
toString()
-
Methods inherited from class jmri.jmrix.AbstractMRReply
flush, getOpCode, isBinary, isRetransmittableErrorMsg, isUnsolicited, match, maxSize, pollValue, setBinary, setElement, setOpCode, setUnsolicited, skipWhiteSpace, value
-
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
-
SerialReply
public SerialReply()
-
SerialReply
public SerialReply(java.lang.String s)
-
SerialReply
public SerialReply(SerialReply l)
-
-
Method Detail
-
toString
public java.lang.String toString()
Description copied from interface:Message
- Specified by:
toString
in interfaceMessage
- Overrides:
toString
in classAbstractMRReply
-
isRcv
public boolean isRcv()
-
getUA
public int getUA()
-
isEOT
public boolean isEOT()
-
isQUERY
public boolean isQUERY()
-
isDGREAD
public boolean isDGREAD()
-
isDGWRITE
public boolean isDGWRITE()
-
isDGACK
public boolean isDGACK()
-
isDGNAK
public boolean isDGNAK()
-
skipPrefix
protected int skipPrefix(int index)
- Specified by:
skipPrefix
in classAbstractMRReply
-
-