com.buglabs.nmea2
Class GGA

java.lang.Object
  extended by com.buglabs.nmea2.AbstractNMEASentence
      extended by com.buglabs.nmea2.GGA

public final class GGA
extends AbstractNMEASentence

Stores GGA type NMEA sentence data


Field Summary
 
Fields inherited from class com.buglabs.nmea2.AbstractNMEASentence
checksum
 
Constructor Summary
protected GGA(java.lang.String sentence)
           
 
Method Summary
 double getAltitude()
           
 int getFixQuality()
           
 double getGeoidHeight()
           
 java.lang.String getLatitude()
           
 java.lang.String getLongitude()
           
 int getNumOfSatellites()
           
 float getPrecision()
           
 Time getTime()
           
 char getUnitOfAltitude()
           
 char getUnitOfGeoidHeight()
           
protected  void initialize()
          Initialize any member objects here.
protected  void parseField(int index, java.lang.String field, java.lang.String[] fields)
           
 java.lang.String toString()
           
protected  void validate()
          Invalid sentences should throw NMEAParserException
 
Methods inherited from class com.buglabs.nmea2.AbstractNMEASentence
getChecksum, getName, isEmpty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GGA

protected GGA(java.lang.String sentence)
Method Detail

initialize

protected void initialize()
Description copied from class: AbstractNMEASentence
Initialize any member objects here.

Overrides:
initialize in class AbstractNMEASentence

parseField

protected void parseField(int index,
                          java.lang.String field,
                          java.lang.String[] fields)
Specified by:
parseField in class AbstractNMEASentence

getTime

public Time getTime()

getLatitude

public java.lang.String getLatitude()

getLongitude

public java.lang.String getLongitude()

getFixQuality

public int getFixQuality()

getNumOfSatellites

public int getNumOfSatellites()

getPrecision

public float getPrecision()

getAltitude

public double getAltitude()

getUnitOfAltitude

public char getUnitOfAltitude()

getGeoidHeight

public double getGeoidHeight()

getUnitOfGeoidHeight

public char getUnitOfGeoidHeight()

validate

protected void validate()
Description copied from class: AbstractNMEASentence
Invalid sentences should throw NMEAParserException

Specified by:
validate in class AbstractNMEASentence

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object