location
Class LocationTester

java.lang.Object
  extended bylocation.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

Field Summary
(package private)  LocationServer ls
           
(package private)  GPSReceiverSettings s
           
 
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.
private  void log(java.lang.String msg)
           
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
 

Field Detail

ls

LocationServer ls

s

GPSReceiverSettings s
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
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
Parameters:
gpsinfo - The new gpsinfoevent.

log

private void log(java.lang.String msg)

main

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