001package jmri.jmrix.rfid.generic.standalone;
002
003import jmri.jmrix.rfid.RfidProtocol;
004import jmri.jmrix.rfid.RfidReply;
005import jmri.jmrix.rfid.RfidTrafficController;
006
007/**
008 * Contains the data payload of a serial reply packet. Note that it's _only_ the
009 * payload.
010 *
011 * @author Bob Jacobsen Copyright (C) 2002, 2006, 2007, 2008
012 * @author Matthew Harris Copyright (C) 2011
013 * @since 2.11.4
014 */
015public class StandaloneReply extends RfidReply {
016
017    RfidProtocol pr = null;
018
019    // create a new one
020    public StandaloneReply(RfidTrafficController tc) {
021        super(tc);
022        this.pr = this.tc.getAdapterMemo().getProtocol();
023        setBinary(true);
024        setUnsolicited();
025    }
026
027    public StandaloneReply(RfidTrafficController tc, String s) {
028        super(tc, s);
029        this.pr = this.tc.getAdapterMemo().getProtocol();
030        setBinary(true);
031        setUnsolicited();
032    }
033
034    public StandaloneReply(RfidTrafficController tc, RfidReply l) {
035        super(tc, l);
036        this.pr = this.tc.getAdapterMemo().getProtocol();
037        setBinary(true);
038        setUnsolicited();
039    }
040
041    @Override
042    public String toMonitorString() {
043        return pr.toMonitorString(this);
044    }
045
046}