|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ka2ddo.ax25.Connector
public abstract class Connector
This class defines the generic API for an object that connects a bidirectional real-time data stream to this application.
Nested Class Summary | |
---|---|
static class |
Connector.PortStats
A data structure recording throughput statistics for its containing PortConnector instance. |
Field Summary | |
---|---|
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 Summary | |
---|---|
Connector()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Connector.PortStats stats
public static final int CAP_XMT_PACKET_DATA
SerialTNCConnector
,
AGWPEConnector
,
AprsIsConnector
,
Constant Field Valuespublic static final int CAP_RCV_PACKET_DATA
SerialTNCConnector
,
KenwoodConnector
,
AGWPEConnector
,
AprsIsConnector
,
Constant Field Valuespublic static final int CAP_IGATE
AprsIsConnector
,
Constant Field Valuespublic static final int CAP_GPS_DATA
SerialGpsConnector
,
KenwoodConnector
,
GPSDistributor
,
Constant Field Valuespublic static final int CAP_WAYPOINT_SENDER
public static final int CAP_FULL_DUPLEX
AprsIsConnector
,
Constant Field Valuespublic static final int CAP_WEATHER
SerialWeatherConnector
,
WxnowTxtConnector
,
WeatherDistributor
,
Constant Field Valuespublic static final int CAP_RF
SerialTNCConnector
,
KenwoodConnector
,
AGWPEConnector
,
Constant Field Valuespublic static final int CAP_OPENTRAC
SerialTNCConnector
,
AGWPEConnector
,
Constant Field Valuespublic static final int CAP_HF
PortConfig.FLAGS_HF
,
Constant Field ValuesConstructor Detail |
---|
public Connector()
Method Detail |
---|
public Connector.PortStats getStats()
public void close()
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public 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_WEATHER
public boolean hasCapability(int capMask)
capMask
- bitmask of capabilities to be tested for
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |