jmri.jmrix.can.adapters.lawicell
Class Reply
java.lang.Object
jmri.jmrix.AbstractMessage
jmri.jmrix.AbstractMRReply
jmri.jmrix.can.adapters.lawicell.Reply
- All Implemented Interfaces:
- Message
public class Reply
- extends AbstractMRReply
Class for replies in a LAWICELL message/reply protocol.
- Author:
- Andrew Crosland Copyright (C) 2008, Bob Jacobsen Copyright (C) 2008
| Methods inherited from class jmri.jmrix.AbstractMRReply |
flush, getOpCode, isBinary, isRetransmittableErrorMsg, isUnsolicited, match, maxSize, pollValue, setBinary, setElement, setOpCode, setUnsolicited, skipWhiteSpace, toString, value |
Reply
public Reply()
Reply
public Reply(String s)
createReply
public CanReply createReply()
skipPrefix
protected int skipPrefix(int index)
- Specified by:
skipPrefix in class AbstractMRReply
setData
public void setData(int[] d)
isExtended
public boolean isExtended()
getHeader
public int getHeader()
- Get the CAN header as an int
- Returns:
- int the CAN ID
getNumBytes
public int getNumBytes()
- Get the number of data bytes
- Returns:
- int the number of bytes
getByte
public int getByte(int b)
- Get a hex data byte from the message
Data bytes are encoded as two ASCII hex digits. The
starting position is byte 10 or byte 5, depending on whether
this is an extended or standard message
- Parameters:
b - The byte offset (0 - 7)
- Returns:
- The value
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: