001package jmri.jmrix.loconet.pr2;
002
003import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
004import jmri.jmrix.loconet.LnPacketizer;
005import jmri.jmrix.loconet.LocoNetSystemConnectionMemo;
006
007/**
008 * Special LnPr2Packetizer implementation for PR2.
009 * Differs only in handling PR2's non-echo.
010 *
011 * @author Bob Jacobsen Copyright (C) 2006
012 */
013public class LnPr2Packetizer extends LnPacketizer {
014
015    @SuppressFBWarnings(value = "ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD", // NOI18N
016            justification = "Only used during system initialization") // NOI18N
017    public LnPr2Packetizer() {
018        super(new LocoNetSystemConnectionMemo());
019        echo = true;
020    }
021    
022    // 
023    /**
024     * Create a Packetizer against an existing LocoNetSystemConnectionMemo.
025     * <p>
026     * This allows for re-configuring an existing LocoNetSystemConnectionMemo, 
027     * which was created during PR3Adapter initialization, for use in the PR3's 
028     * "PR2 Mode" (i.e. "Standalone Programmer Mode".)
029     *
030     * @param memo pre-existing LocoNetSystemConnectionMemo
031     */    
032    public LnPr2Packetizer(LocoNetSystemConnectionMemo memo) {
033        super(memo);
034        echo = true;
035    }
036
037//    private final static org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(LnPr2Packetizer.class);
038
039}