001package jmri.jmrix.loconet.locobufferii;
002
003import jmri.jmrix.loconet.LocoNetSystemConnectionMemo;
004import jmri.jmrix.loconet.locobuffer.LocoBufferAdapter;
005
006
007/**
008 * Update the code in jmri.jmrix.loconet.locobuffer so that it refers to the
009 * switch settings on the LocoBuffer-II.
010 *
011 * @author Bob Jacobsen Copyright (C) 2004
012 */
013public class LocoBufferIIAdapter extends LocoBufferAdapter {
014
015    public LocoBufferIIAdapter(LocoNetSystemConnectionMemo adapterMemo) {
016        super(adapterMemo);
017    }
018
019    public LocoBufferIIAdapter() {
020        this(new LocoNetSystemConnectionMemo());
021    }
022
023    /**
024     * {@inheritDoc}
025     * This is modified to have different comments. Because the speeds are the same as
026     * the parent class (19200 and 57600), we don't override validBaudNumbers().
027     */
028    @Override
029    public String[] validBaudRates() {
030        return new String[]{Bundle.getMessage("Baud19200LBII"), Bundle.getMessage("Baud57600LBII")};
031    }
032
033    /**
034     * Get a String that says what Option 1 represents.
035     * @return human readable string form uses LocoBuffer-II.
036     */
037    public String option1Name() {
038        return Bundle.getMessage("XconnectionUsesLabel", "LocoBuffer-II");
039    }
040
041}