001package jmri.jmrix.dccpp;
002
003import jmri.jmrix.ConnectionTypeList;
004import org.openide.util.lookup.ServiceProvider;
005
006/**
007 * Returns a list of valid DCC++ Connection Types
008 *
009 * @author Bob Jacobsen Copyright (C) 2010
010 * @author Kevin Dickerson Copyright (C) 2010
011 * @author Mark Underwood Copyright (C) 2015
012  *
013 * Based on jmri.jmrix.lenz.LenzConnectionTypeList
014 */
015@ServiceProvider(service = ConnectionTypeList.class)
016public class DCCppConnectionTypeList implements jmri.jmrix.ConnectionTypeList {
017
018    public static final String DCCPP = "DCC++";
019
020    @Override
021    public String[] getAvailableProtocolClasses() {
022        return new String[]{
023            "jmri.jmrix.dccpp.serial.ConnectionConfig",
024            "jmri.jmrix.dccpp.simulator.ConnectionConfig",
025            "jmri.jmrix.dccpp.network.ConnectionConfig",
026            "jmri.jmrix.dccpp.dccppovertcp.ConnectionConfig",
027            "jmri.jmrix.dccpp.DCCppStreamConnectionConfig",
028        };
029    }
030
031    @Override
032    public String[] getManufacturers() {
033        return new String[]{DCCPP};
034    }
035
036}