jmri.jmrix.rfid
Class RfidReply
java.lang.Object
jmri.jmrix.AbstractMessage
jmri.jmrix.AbstractMRReply
jmri.jmrix.rfid.RfidReply
- All Implemented Interfaces:
- Message
- Direct Known Subclasses:
- CoreIdRfidReply
public abstract class RfidReply
- extends AbstractMRReply
Contains the data payload of a serial reply
packet. Note that its _only_ the payload.
- Since:
- 2.11.4
- Author:
- Bob Jacobsen Copyright (C) 2002, 2006, 2007, 2008, Matthew Harris Copyright (C) 2011
| Methods inherited from class jmri.jmrix.AbstractMRReply |
flush, getOpCode, isBinary, isRetransmittableErrorMsg, isUnsolicited, match, maxSize, pollValue, setBinary, setElement, setOpCode, setUnsolicited, skipWhiteSpace, toString, value |
RfidReply
public RfidReply(RfidTrafficController tc)
RfidReply
public RfidReply(RfidTrafficController tc,
String s)
RfidReply
public RfidReply(RfidTrafficController tc,
RfidReply l)
getTag
public String getTag()
- Is reply to poll message
skipPrefix
protected int skipPrefix(int index)
- Specified by:
skipPrefix in class AbstractMRReply
toMonitorString
public abstract String toMonitorString()
convertHexString
protected static byte[] convertHexString(String s)
- Converts a hex string to an unsigned byte array.
Both upper and lower case hex codes are permitted.
- Parameters:
s - String representation of a hex number.
Must be a whole number of bytes
(i.e. an even number of characters)
and be formed only of digits 0..9, a..f or A..F
- Returns:
- corresponding unsigned byte array
- Throws:
IllegalArgumentException - when s is not a valid hex string
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: