public class GpsdConnector extends PortConnector implements java.lang.Runnable, java.lang.Thread.UncaughtExceptionHandler
Connector.PortStats| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CONFIG_GUI |
static java.lang.String |
TYPE_NAME |
currentCfg, portConfigCAP_FULL_DUPLEX, CAP_GPS_DATA, CAP_HF, CAP_IGATE, CAP_OPENTRAC, CAP_RCV_PACKET_DATA, CAP_RF, CAP_WAYPOINT_SENDER, CAP_WEATHER, CAP_XMT_PACKET_DATA, stats| Constructor and Description |
|---|
GpsdConnector() |
| 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.
|
int |
getCapabilities()
Specify what capabilities a port of this type has.
|
boolean |
isOpen()
Reports whether this PortConnector has an open connection to its port.
|
void |
run()
Read the socket connection until it closes.
|
java.lang.String |
toString()
Returns a string representation of the GpsdConnector object.
|
void |
uncaughtException(java.lang.Thread t,
java.lang.Throwable e)
Method invoked when the given thread terminates due to the
given uncaught exception.
|
addFrameListener, addPortEventListener, createPort, fireConsumeFrame, fireConsumeFrame, fireFailed, fireReceiving, fireTransmitting, getPortConnectorClass, portConnectorClasses, portTypeNames, registerPortConnectorType, removeFrameListener, removePortEventListener, setPortConfigfinalize, getCallsign, getStats, hasCapabilitypublic static final java.lang.String TYPE_NAME
public static final java.lang.String CONFIG_GUI
public 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 void run()
run in interface java.lang.RunnableThread.run()public void close()
public int getCapabilities()
getCapabilities in class ConnectorConnector.CAP_GPS_DATApublic java.lang.String toString()
toString in class java.lang.Objectpublic final void uncaughtException(java.lang.Thread t,
java.lang.Throwable e)
uncaughtException in interface java.lang.Thread.UncaughtExceptionHandlert - the threade - the exception