de.fhg.igd.gps
Class NMEA183GLLSentence

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

public class NMEA183GLLSentence
extends NMEA183Sentence

GLL - Geographic position, Latitude and Longitude

Author:
Dennis Bartussek

Field Summary
protected  String dataStatus_
          Data status:
A = ok
V = warning
protected  Latitude latitude_
          Latitude
protected  Longitude longitude_
          Longitude
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
NMEA183GLLSentence(String talkerId)
          Constructs a new NMEAGLL183Sentence with the specified talkerId.
 
Method Summary
protected  String bodyToString()
          Returns the body part of this sentence's string representation.
 String getDataStatus()
          Returns the data status of this sentence as a String object.
 Latitude getLatitude()
          Returns the Latitude of this sentence.
 Longitude getLongitude()
          Returns the Longitude of this sentence.
 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) )


dataStatus_

protected String dataStatus_
Data status:
A = ok
V = warning

Constructor Detail

NMEA183GLLSentence

public NMEA183GLLSentence(String talkerId)
Constructs a new NMEAGLL183Sentence with the specified talkerId.

Parameters:
talkerId - the talker id of this NMEA183GLLSentence
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

getDataStatus

public String getDataStatus()
Returns the data status of this sentence as a String object.

Returns:
the data status of this sentence as a String object

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.