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