Package jmri.jmrix

Interface PortAdapter

All Known Subinterfaces:
DCCppPortController, NetworkPortAdapter, SerialPortAdapter, XNetPortController
All Known Implementing Classes:
AbstractNetworkPortController, AbstractPortController, AbstractSerialPortController, AbstractStreamPortController, AcelaPortController, AnymaDMX_UsbPortAdapter, CanisbSerialDriverAdapter, CanSprogSerialDriverAdapter, CanUsbDriverAdapter, Dcc4PcPortController, DCCppAdapter, DCCppEthernetAdapter, DCCppNetworkPortController, DCCppSerialPortController, DCCppSimulatorAdapter, DCCppSimulatorPortController, DCCppStreamPortController, DCCppTcpDriverAdapter, EasyDccNetworkPortController, EasyDccPortController, EcosPortController, EliteAdapter, GcPortController, GcSerialDriverAdapter, IEEE802154PortController, IntelliboxAdapter, InternalAdapter, IpocsPortController, JMRIClientPortController, LI100Adapter, LI100fAdapter, LI101Adapter, LIUSBAdapter, LIUSBEthernetAdapter, LIUSBServerAdapter, LnHexFilePort, LnNetworkPortController, LnPortController, LnStreamPortController, LnTcpDriverAdapter, LocoBufferAdapter, LocoBufferIIAdapter, LocoBufferUsbAdapter, LocoNetBluetoothAdapter, LZV200Adapter, MarklinPortController, MergNetworkDriverAdapter, MqttAdapter, MrcPortController, MS100Adapter, Mx1Adapter, Mx1PortController, NceNetworkPortController, NcePortController, NetworkDriverAdapter, NetworkDriverAdapter, NetworkDriverAdapter, NetworkDriverAdapter, NetworkDriverAdapter, NetworkDriverAdapter, NetworkDriverAdapter, NetworkDriverAdapter, NetworkDriverAdapter, PiSprog3SerialDriverAdapter, PiSprogNanoSerialDriverAdapter, PiSprogOneCSSerialDriverAdapter, PiSprogOneSerialDriverAdapter, Port, PortController, PortController, PR2Adapter, PR3Adapter, PR4Adapter, QsiPortController, RaspberryPiAdapter, RfidNetworkPortController, RfidPortController, RfidStreamPortController, SerialAdapter, SerialDriverAdapter, SerialDriverAdapter, SerialDriverAdapter, SerialDriverAdapter, SerialDriverAdapter, SerialDriverAdapter, SerialDriverAdapter, SerialDriverAdapter, SerialDriverAdapter, SerialDriverAdapter, SerialDriverAdapter, SerialDriverAdapter, SerialDriverAdapter, SerialDriverAdapter, SerialDriverAdapter, SerialDriverAdapter, SerialDriverAdapter, SerialDriverAdapter, SerialDriverAdapter, SerialDriverAdapter, SerialDriverAdapter, SerialDriverAdapter, SerialDriverAdapter, SerialDriverAdapter, SerialDriverAdapter, SerialDriverAdapter, SerialDriverAdapter, SerialNetworkPortAdapter, SerialPortAdapter, SerialPortController, SerialPortController, SerialPortController, SerialPortController, SerialPortController, SerialPortController, SerialSensorAdapter, SimDriverAdapter, SimulatorAdapter, SimulatorAdapter, SimulatorAdapter, SimulatorAdapter, SimulatorAdapter, SimulatorAdapter, SimulatorAdapter, SimulatorAdapter, SimulatorAdapter, SimulatorAdapter, SimulatorAdapter, SimulatorAdapter, SpecificDriverAdapter, SpecificDriverAdapter, SpecificDriverAdapter, SpeedoPortController, Sprog3PlusSerialDriverAdapter, SprogCSSerialDriverAdapter, SprogCSStreamPortController, SprogNanoSerialDriverAdapter, SprogPortController, SRCPPortController, TamsPortController, UhlenbrockAdapter, UsbDcs240Adapter, UsbDcs52Adapter, UsbDriverAdapter, UsbPortAdapter, XBeeAdapter, XBeeIOStream, XNetNetworkPortController, XNetSerialPortController, XNetSimulatorAdapter, XNetSimulatorPortController, XNetStreamPortController, XnTcpAdapter, XpaPortController, Z21Adapter, Z21LnStreamPortController, Z21SimulatorAdapter, Z21XNetStreamPortController, ZTC611Adapter, ZTC640Adapter

public interface PortAdapter
Enables basic setup of a interface for a jmrix implementation.

This is the basic interface. Subclasses provide extensions for specific connection types (network, serial, etc).

For historical reasons, this provides both four specific options (option1 to option4) plus a more flexible interface based on a String array. The more flexible interface is the preferred one for new work, but the 1-4 form hasn't been deprecated yet.

General design documentation is available on the Structure of External System Connections page.

Since:
2.3.1
See Also:
SerialConfigException