location
Class LocationTester

java.lang.Object
  |
  +--location.LocationTester
All Implemented Interfaces:
java.util.EventListener, GpsInfoListener, GPSReceiverUser, LocationListener

public class LocationTester
extends java.lang.Object
implements LocationListener, GpsInfoListener, GPSReceiverUser

Tests the funcationality of the location package. Usage: LocationTester [option] where [option] can be either "f" or "r." "f" tests the fake GPS, "r" tests the real GPS.

Version:
6/19/2003
Author:
Chien-Liang Fok

Constructor Summary
LocationTester()
          Creates a LocationTester.
 
Method Summary
 void locationChanged(LocationEvent le)
          Method that is called by the event generator when new location information is available.
static void main(java.lang.String[] args)
           
 void newGpsInfo(GpsInfoEvent gpsinfo)
          Method that is called by the event generator when new gps information is available.
 void setGPSReceiverSettings(GPSReceiverSettings s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocationTester

public LocationTester()
Creates a LocationTester.
Method Detail

setGPSReceiverSettings

public void setGPSReceiverSettings(GPSReceiverSettings s)
Specified by:
setGPSReceiverSettings in interface GPSReceiverUser

locationChanged

public void locationChanged(LocationEvent le)
Description copied from interface: LocationListener
Method that is called by the event generator when new location information is available.
Specified by:
locationChanged in interface LocationListener
Following copied from interface: location.LocationListener
Parameters:
le - the new location event.

newGpsInfo

public void newGpsInfo(GpsInfoEvent gpsinfo)
Description copied from interface: GpsInfoListener
Method that is called by the event generator when new gps information is available.
Specified by:
newGpsInfo in interface GpsInfoListener
Following copied from interface: location.GpsInfoListener
Parameters:
gpsinfo - The new gpsinfoevent.

main

public static void main(java.lang.String[] args)