es.uv.robotica.gvsig.mobile.gps.listener
Interface GPSRelevantEventsListener

All Known Implementing Classes:
GPSActivityDialog, GPSDataCanvas, GPSSatCanvas, MapControl

public interface GPSRelevantEventsListener

This interface should be implemented by classes that need to receive the relevant GPS events for the application like position or quality of the fix. All these events are generated by the GPS Manager

Author:
jgui
See Also:
GPSManager, GPSFix

Method Summary
 void gpsNewAltitude(double altitude)
          Returns a new altitude
 void gpsNewHeading(double heading)
          Returns a new heading
 void gpsNewPDOP(double pdop)
          Returns a new value for the position dillution of precision estimated for the fix
 void gpsNewPosition(double longitude, double latitude)
          Returns a new position calculated
 void gpsNewQuality(int quality)
          Returns a new value for the quality of the fix
 void gpsNewSatsUsed(int satUsed)
          Returns a new value for the number of satellites used in the fix
 void gpsNewStatus(int status)
          Returns a new value for the status of the GPS
 

Method Detail

gpsNewPosition

public void gpsNewPosition(double longitude,
                           double latitude)
Returns a new position calculated

Parameters:
longitude - latitude in degrees
latitude - latitude in degrees

gpsNewAltitude

public void gpsNewAltitude(double altitude)
Returns a new altitude

Parameters:
altitude - altitude in meters

gpsNewHeading

public void gpsNewHeading(double heading)
Returns a new heading

Parameters:
heading - heading in degrees

gpsNewSatsUsed

public void gpsNewSatsUsed(int satUsed)
Returns a new value for the number of satellites used in the fix

Parameters:
satUsed - number of satellites used

gpsNewPDOP

public void gpsNewPDOP(double pdop)
Returns a new value for the position dillution of precision estimated for the fix

Parameters:
pdop - position dillution of precision

gpsNewQuality

public void gpsNewQuality(int quality)
Returns a new value for the quality of the fix

Parameters:
quality - one of the following values: - FIX_QUALITY_INVALID if the fix is invalid - FIX_QUALITY_GPS if the fix is an autonomous GPS fix - FIX_QUALITY_DGPS if the fix is a differential GPS fix

gpsNewStatus

public void gpsNewStatus(int status)
Returns a new value for the status of the GPS

Parameters:
status - one of the following values: - FIX_DIMENSIONS_INVALID if the GPS has not a valid fix (less than 3 valid satellites) - FIX_DIMENSIONS_2D if the GPS is in 2D mode (less than 4 valid satellites) - FIX_DIMENSIONS_3D if the GPS is in 3D mode