public class ExternalMessageSourceConnector extends PortConnector implements jssc.SerialPortEventListener
PortConnector.PortStatsTypeConnector.ConnectorType, Connector.PortStats| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CONFIG_GUI
The fully-qualified platform-wildcarded class name for the configuration editor for ExternalMessageSourceConnector.
|
static java.lang.String |
TYPE_NAME
The PortConnector type name for ExternalMessageSourceConnector.
|
currentCfg, portConfigCAP_ADSB, CAP_APRS, CAP_FAST_RF_9600, CAP_FULL_DUPLEX, CAP_GPS_DATA, CAP_HF, CAP_IGATE, CAP_KENWOOD_CMD, CAP_OPENTRAC, CAP_OTHER_TRANSPORT, CAP_RAW_AX25, CAP_RCV_PACKET_DATA, CAP_RF, CAP_SUBCLIENT, CAP_WAYPOINT_SENDER, CAP_WEATHER, CAP_XMT_PACKET_DATA, stats| Constructor and Description |
|---|
ExternalMessageSourceConnector() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Shut down this port connection.
|
void |
configure(PortConfig config)
Update the configuration of the connector to match the updated
setup.
|
static void |
fillinConfigDefaults(PortConfig.Cfg cfg)
Set the correct defaults for a port in process of being created.
|
int |
getCapabilities()
Specify what capabilities a port of this type has.
|
int |
getLocalPort()
Reserved for unit testing so unit tests can use floating port number and not
have binding errors.
|
boolean |
isOpen()
Reports whether this PortConnector has an open connection to its port.
|
void |
serialEvent(jssc.SerialPortEvent event)
Process incoming serial port event.
|
java.lang.String |
toString()
Returns a string representation of the object.
|
addPortEventListener, createPort, fillinConfigDefaultsForType, fireFailed, fireReceiving, fireTransmitting, getBitRate, getCollectedStatsTypes, getPortConfig, getPortConnectorClass, getPortConnectorInactivityTimer, getStats, portConnectorClasses, portTypeNames, registerPortConnectorType, removePortEventListener, setPortConfigaddFrameListener, finalize, fireConsumeFrame, fireConsumeFrame, getCallsign, getStats, getType, hasCapability, removeFrameListenerpublic static final java.lang.String TYPE_NAME
public static final java.lang.String CONFIG_GUI
public static void fillinConfigDefaults(PortConfig.Cfg cfg)
cfg - PortConfig.Cfg whose defaults should be adjustedpublic void configure(PortConfig config) throws java.io.IOException, java.lang.IllegalArgumentException
configure in class PortConnectorconfig - PortConfig defining new port settingsjava.io.IOException - if interface changes could not be appliedjava.lang.IllegalArgumentException - if type information is invalid for
changing the settings of this PortConnectorpublic boolean isOpen()
public int getLocalPort()
throws java.lang.IllegalStateException
java.lang.IllegalStateException - if connector is not open or is in TCP client modepublic void close()
public void serialEvent(jssc.SerialPortEvent event)
serialEvent in interface jssc.SerialPortEventListenerevent - SerialPortEvent describing the handling neededpublic int getCapabilities()
getCapabilities in class ConnectorConnector.CAP_APRS,
Connector.CAP_RCV_PACKET_DATA,
Connector.CAP_XMT_PACKET_DATA,
Connector.CAP_FAST_RF_9600,
Connector.CAP_FULL_DUPLEX,
Connector.CAP_GPS_DATA,
Connector.CAP_HF,
Connector.CAP_IGATE,
Connector.CAP_KENWOOD_CMD,
Connector.CAP_OPENTRAC,
Connector.CAP_ADSB,
Connector.CAP_RAW_AX25,
Connector.CAP_RF,
Connector.CAP_WAYPOINT_SENDER,
Connector.CAP_WEATHER,
Connector.CAP_SUBCLIENT,
Connector.CAP_OTHER_TRANSPORTpublic java.lang.String toString()
toString in class java.lang.Object