|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jwo.landserf.process.gps.garmin.ConnectionTest
public class ConnectionTest
A simple test-program that queries the GPS for a description of itself. Attempts to turn off the GPS after retrieving the description.
Constructor Summary | |
---|---|
ConnectionTest()
Tests the GPS connection. |
Method Summary | |
---|---|
static void |
main(String[] args)
Tests the connection with GPS. |
void |
transferComplete(int commandID)
Called when the transfer to/from GPS is complete. |
void |
transferStarted(int number)
Called when a transfer to/from GPS is initiated. |
void |
waypointReceived(GPSWaypoint wp)
Handles the receipt of a waypoint from the GPS. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConnectionTest()
Method Detail |
---|
public static void main(String[] args)
args
- Command line arguments (ignored).public void transferStarted(int number)
transferStarted
in interface GPSTransferListener
number
- The amount of data that will be transferred, e.g. the amount of waypoints.
If it's not possible to tell how much data will be transferred, number will be -1.public void transferComplete(int commandID)
transferComplete
in interface GPSTransferListener
commandID
- ID of command that has been completed.public void waypointReceived(GPSWaypoint wp)
waypointReceived
in interface GPSWaypointListener
wp
- Waypoint information from the GPS.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |