public abstract class Connector
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Connector.PortStats
A data structure recording throughput statistics for its containing PortConnector instance.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
CAP_FULL_DUPLEX
A port that can both send and receive data simultaneously.
|
static int |
CAP_GPS_DATA
A port capable of providing NMEA GPS data.
|
static int |
CAP_HF
A port that has HF radio access (i.e., low bandwidth, excessive geographical coverage).
|
static int |
CAP_IGATE
A port with a connection to the Internet and APRS-IS backbone.
|
static int |
CAP_OPENTRAC
A port that can speak the OpenTRAC protocol.
|
static int |
CAP_RCV_PACKET_DATA
A port that is capable of receiving AX.25 (or equivalent) data frames.
|
static int |
CAP_RF
A port that has local RF access.
|
static int |
CAP_WAYPOINT_SENDER
A port capable of accepting NMEA waypoint data.
|
static int |
CAP_WEATHER
A port that can provide weather data through the WeatherDistributor.
|
static int |
CAP_XMT_PACKET_DATA
A port that is capable of transmitting AX.25 (or equivalent) data frames.
|
protected Connector.PortStats |
stats
Statistics about this PortConnector.
|
| Constructor and Description |
|---|
Connector() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Shut down this port connection.
|
protected void |
finalize() |
java.lang.String |
getCallsign()
For ports that have an AX.25 address (callsign), report the callsign
associated with the port (used for transmissions initiated through this port
instead of digipeated).
|
int |
getCapabilities()
Specify what capabilities a port of this type has.
|
Connector.PortStats |
getStats()
Get the current statistics for this PortConnector instance.
|
boolean |
hasCapability(int capMask)
Test if this PortConnector has the specified capability or capabilities.
|
abstract boolean |
isOpen()
Reports whether this Connector has an open connection to its port.
|
protected Connector.PortStats stats
public static final int CAP_XMT_PACKET_DATA
public static final int CAP_RCV_PACKET_DATA
public static final int CAP_IGATE
AprsIsConnector,
SslAprsIsConnector,
Constant Field Valuespublic static final int CAP_GPS_DATA
public static final int CAP_WAYPOINT_SENDER
SerialGpsConnector,
Constant Field Valuespublic static final int CAP_FULL_DUPLEX
AprsIsConnector,
SslAprsIsConnector,
Constant Field Valuespublic static final int CAP_WEATHER
public static final int CAP_RF
public static final int CAP_OPENTRAC
public static final int CAP_HF
PortConfig.FLAGS_HF,
Constant Field Valuespublic Connector.PortStats getStats()
public void close()
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwablepublic abstract boolean isOpen()
public java.lang.String getCallsign()
public int getCapabilities()
CAP_RCV_PACKET_DATA,
CAP_XMT_PACKET_DATA,
CAP_FULL_DUPLEX,
CAP_GPS_DATA,
CAP_IGATE,
CAP_OPENTRAC,
CAP_RF,
CAP_WAYPOINT_SENDER,
CAP_WEATHERpublic boolean hasCapability(int capMask)
capMask - bitmask of capabilities to be tested for