de.fhg.igd.gps
Class NMEA183GGASentence

java.lang.Object
  extended byde.fhg.igd.gps.NMEA183Sentence
      extended byde.fhg.igd.gps.NMEA183GGASentence

public class NMEA183GGASentence
extends NMEA183Sentence

GGA - Global Positioning System Fix Data, Time, Position and fix related data.

Author:
Dennis Bartussek

Field Summary
protected  double altitude_
          Altitude above mean sea level
protected  String altitudeMeasure_
           
protected  int dgpsId_
          DGPS station ID number
protected  int fixQuality_
          Fix quality
0 = invalid
1 = GPS fix
2 = DGPS fix
protected  double hdop_
          Horizontal dilution of position
protected  double height_
          Height of geoid (mean sea level) above WGS84 ellipsoid
protected  String heightMeasure_
           
protected  int lastUpdate_
          Time in seconds since last DGPS update
protected  Latitude latitude_
          Latitude
protected  Longitude longitude_
          Longitude
protected  int satellites_
          Number of satellites being tracked
protected  Date timestamp_
          Fix taken at ( Universal Time Coordinated (UTC) )
 
Fields inherited from class de.fhg.igd.gps.NMEA183Sentence
checksum_, fields_, sentenceId_, sentenceId_desc_, talkerId_, talkerId_desc_
 
Constructor Summary
NMEA183GGASentence(String talkerId)
          Constructs a new NMEAGGA183Sentence with the specified talkerId.
 
Method Summary
protected  String bodyToString()
          Returns the body part of this sentence's string representation.
 double getAltitude()
          Returns the altitude of this sentence.
 String getAltitudeMeasure()
          Returns the measure of this sentence's altitude as a String object.
 int getDgpsId()
          Returns the time in seconds since last DGPS update.
 int getFixQuality()
          Returns the fix quality as an int value.
 double getHdop()
          Returns the horizontal dilution of precision.
 double getHeight()
          Returns the height of this sentence.
 String getHeightMeasure()
          Returns the measure of this sentence's height as a String object.
 int getLastUpdate()
          Returns the time in seconds since last DGPS update.
 Latitude getLatitude()
          Returns the Latitude of this sentence.
 Longitude getLongitude()
          Returns the Longitude of this sentence.
 int getSatellites()
          Returns the number of satellites.
 Date getTimestamp()
          Returns the time stamp of this sentence as a Date object.
 void parse(NMEA183Tokenizer tokenizer)
          Reads and parses a NMEA183 sentence from tokenizer.
 
Methods inherited from class de.fhg.igd.gps.NMEA183Sentence
computeChecksum, getDateField, getFloatField, getIntegerField, getLatitudeField, getLongitudeField, getSentenceId, getStringField, hasChecksum, headerToString, rebuildSentence, toString, valid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

longitude_

protected Longitude longitude_
Longitude


latitude_

protected Latitude latitude_
Latitude


timestamp_

protected Date timestamp_
Fix taken at ( Universal Time Coordinated (UTC) )


fixQuality_

protected int fixQuality_
Fix quality
0 = invalid
1 = GPS fix
2 = DGPS fix


satellites_

protected int satellites_
Number of satellites being tracked


hdop_

protected double hdop_
Horizontal dilution of position


altitude_

protected double altitude_
Altitude above mean sea level


altitudeMeasure_

protected String altitudeMeasure_

height_

protected double height_
Height of geoid (mean sea level) above WGS84 ellipsoid


heightMeasure_

protected String heightMeasure_

lastUpdate_

protected int lastUpdate_
Time in seconds since last DGPS update


dgpsId_

protected int dgpsId_
DGPS station ID number

Constructor Detail

NMEA183GGASentence

public NMEA183GGASentence(String talkerId)
Constructs a new NMEAGGA183Sentence with the specified talkerId.

Parameters:
talkerId - the talker id of this NMEA183GGASentence
Method Detail

parse

public void parse(NMEA183Tokenizer tokenizer)
           throws NMEA183SentenceFormatException
Description copied from class: NMEA183Sentence
Reads and parses a NMEA183 sentence from tokenizer.

Overrides:
parse in class NMEA183Sentence
Parameters:
tokenizer - the NMEA183Tokenizer to read from
Throws:
NMEA183SentenceFormatException - if the read sentence does not have the appropriate format

getTimestamp

public Date getTimestamp()
Returns the time stamp of this sentence as a Date object.

Returns:
the time stamp of this sentence as a Date object.

getLongitude

public Longitude getLongitude()
Returns the Longitude of this sentence.

Returns:
the Longitude of this sentence

getLatitude

public Latitude getLatitude()
Returns the Latitude of this sentence.

Returns:
the Latitude of this sentence

getHeight

public double getHeight()
Returns the height of this sentence.

Returns:
the height of this sentence.
See Also:
getHeightMeasure()

getHeightMeasure

public String getHeightMeasure()
Returns the measure of this sentence's height as a String object.

Returns:
the measure of this sentence's height
See Also:
getHeight()

getFixQuality

public int getFixQuality()
Returns the fix quality as an int value.

Returns:
the fix quality as an int value.

getSatellites

public int getSatellites()
Returns the number of satellites.

Returns:
the number of satellites

getHdop

public double getHdop()
Returns the horizontal dilution of precision.

Returns:
the horizontal dilution of precision

getAltitude

public double getAltitude()
Returns the altitude of this sentence.

Returns:
the altitude of this sentence
See Also:
getAltitudeMeasure()

getAltitudeMeasure

public String getAltitudeMeasure()
Returns the measure of this sentence's altitude as a String object.

Returns:
the measure of this sentence's height
See Also:
getAltitude()

getLastUpdate

public int getLastUpdate()
Returns the time in seconds since last DGPS update.

Returns:
the time in seconds since last DGPS update

getDgpsId

public int getDgpsId()
Returns the time in seconds since last DGPS update.

Returns:
the time in seconds since last DGPS update

bodyToString

protected String bodyToString()
Description copied from class: NMEA183Sentence
Returns the body part of this sentence's string representation.

Overrides:
bodyToString in class NMEA183Sentence
Returns:
the body part of this sentence's string representation.
See Also:
NMEA183Sentence.toString()


Copyright © Fraunhofer Gesellschaft. All Rights Reserved.