001package jmri.jmrix.loconet.hexfile;
002
003/**
004 * Definition of objects to handle configuring a layout connection via a LocoNet
005 * hexfile emulator.
006 *
007 * @author Bob Jacobsen Copyright (C) 2001, 2003
008 */
009public class ConnectionConfig extends jmri.jmrix.AbstractSimulatorConnectionConfig {
010
011    /**
012     * Ctor for an object being created during load process; Swing init is
013     * deferred.
014     *
015     * @param p a {@link jmri.jmrix.SerialPortAdapter} object
016     */
017    public ConnectionConfig(jmri.jmrix.SerialPortAdapter p) {
018        super(p);
019    }
020
021    public ConnectionConfig() {
022        super();
023    }
024
025    @Override
026    public String name() {
027        return "LocoNet Simulator"; // NOI18N
028    }
029
030    /**
031     * {@inheritDoc}
032     */
033    @Override
034    protected void setInstance() {
035        if (adapter == null) {
036            adapter = new LnHexFilePort();
037        }
038    }
039
040}