001package jmri.jmrix.rfid; 002 003import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 004 005/** 006 * Contains the data payload of a serial reply packet. Note that it's _only_ the 007 * payload. 008 * 009 * @author Bob Jacobsen Copyright (C) 2002, 2006, 2007, 2008 010 * @author Matthew Harris Copyright (C) 2011 011 * @since 2.11.4 012 */ 013abstract public class RfidReply extends jmri.jmrix.AbstractMRReply { 014 015 @SuppressFBWarnings(value = "URF_UNREAD_FIELD", justification = "used by derived classes to fetch protocol in use") 016 protected RfidTrafficController tc = null; 017 018 // create a new one 019 public RfidReply(RfidTrafficController tc) { 020 super(); 021 this.tc = tc; 022 setBinary(true); 023 } 024 025 public RfidReply(RfidTrafficController tc, String s) { 026 super(s); 027 this.tc = tc; 028 setBinary(true); 029 } 030 031 public RfidReply(RfidTrafficController tc, RfidReply l) { 032 super(l); 033 this.tc = tc; 034 setBinary(true); 035 } 036 037 @Override 038 protected int skipPrefix(int index) { 039 // doesn't have to do anything 040 return index; 041 } 042 043}