Package jmri.jmrix.ieee802154
Class IEEE802154Reply
- java.lang.Object
-
- jmri.jmrix.AbstractMessage
-
- jmri.jmrix.AbstractMRReply
-
- jmri.jmrix.ieee802154.IEEE802154Reply
-
- All Implemented Interfaces:
Message
- Direct Known Subclasses:
XBeeReply
public class IEEE802154Reply extends AbstractMRReply
Contains the data payload of a serial reply packet. Note that it's _only_ the payload.
-
-
Field Summary
-
Fields inherited from class jmri.jmrix.AbstractMRReply
DEFAULTMAXSIZE
-
Fields inherited from class jmri.jmrix.AbstractMessage
_dataChars, _nDataChars
-
-
Constructor Summary
Constructors Constructor Description IEEE802154Reply()
IEEE802154Reply(java.lang.String s)
IEEE802154Reply(IEEE802154Reply l)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
checkParity()
check whether the message has a valid parity IEEE 802.15.4 messages have a two byte parity.byte[]
getDestinationAddress()
int
getDestinationAddressMode()
int
getFrameControl()
int
getLength()
byte[]
getPayload()
byte
getSequenceByte()
byte[]
getSourceAddr()
int
getSourceAddressMode()
boolean
isIntraPanFrame()
protected int
skipPrefix(int index)
-
Methods inherited from class jmri.jmrix.AbstractMRReply
flush, getOpCode, isBinary, isRetransmittableErrorMsg, isUnsolicited, match, maxSize, pollValue, setBinary, setElement, setOpCode, setUnsolicited, skipWhiteSpace, toString, 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
-
IEEE802154Reply
public IEEE802154Reply()
-
IEEE802154Reply
public IEEE802154Reply(java.lang.String s)
-
IEEE802154Reply
public IEEE802154Reply(IEEE802154Reply l)
-
-
Method Detail
-
getDestinationAddress
public byte[] getDestinationAddress()
-
getSourceAddr
public byte[] getSourceAddr()
-
getPayload
public byte[] getPayload()
-
getLength
public int getLength()
-
getFrameControl
public int getFrameControl()
-
getDestinationAddressMode
public int getDestinationAddressMode()
-
getSourceAddressMode
public int getSourceAddressMode()
-
isIntraPanFrame
public boolean isIntraPanFrame()
-
getSequenceByte
public byte getSequenceByte()
-
skipPrefix
protected int skipPrefix(int index)
- Specified by:
skipPrefix
in classAbstractMRReply
-
checkParity
public boolean checkParity()
check whether the message has a valid parity IEEE 802.15.4 messages have a two byte parity.- Returns:
- true if parity valid
-
-