de.fhg.igd.gps
Class NMEA183RMCSentence

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

public class NMEA183RMCSentence
extends NMEA183Sentence

RMC - Recommended minimum specific GPS/Transit data

Author:
Dennis Bartussek

Field Summary
protected  String dataStatus_
          navigation receiver warning
A = ok
V = warning
protected  Date fixDate_
          date of fix
protected  double groundSpeedKnots_
          speed over ground, knots
protected  Latitude latitude_
          latitude
protected  Longitude longitude_
          longitude
protected  double magneticVariation_
          magnetic variation
protected  String magneticVariationDirection_
           
protected  Date timestamp_
          time of fix
protected  double trueCourse_
          true course, degrees
 
Fields inherited from class de.fhg.igd.gps.NMEA183Sentence
checksum_, fields_, sentenceId_, sentenceId_desc_, talkerId_, talkerId_desc_
 
Constructor Summary
NMEA183RMCSentence(String talkerId)
          Constructs a new NMEARMC183Sentence 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 ( "A" = ok, "V" = warning ).
 Date getFixDate()
          Returns the date of fix.
 double getGroundSpeedKnots()
          Returns the ground speed, measured in knots.
 Latitude getLatitude()
          Returns the Latitude of this sentence.
 Longitude getLongitude()
          Returns the Longitude of this sentence.
 double getMagneticVariation()
          Returns the magnetic variation.
 String getMagneticVariationDirection()
          Returns the direction of the magnetic variation.
 Date getTimestamp()
          Returns the time stamp of this sentence as a Date object.
 double getTrueCourse()
          Returns the true course, measured in degrees.
 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

timestamp_

protected Date timestamp_
time of fix


dataStatus_

protected String dataStatus_
navigation receiver warning
A = ok
V = warning


latitude_

protected Latitude latitude_
latitude


longitude_

protected Longitude longitude_
longitude


groundSpeedKnots_

protected double groundSpeedKnots_
speed over ground, knots


trueCourse_

protected double trueCourse_
true course, degrees


fixDate_

protected Date fixDate_
date of fix


magneticVariation_

protected double magneticVariation_
magnetic variation


magneticVariationDirection_

protected String magneticVariationDirection_
Constructor Detail

NMEA183RMCSentence

public NMEA183RMCSentence(String talkerId)
Constructs a new NMEARMC183Sentence with the specified talkerId.

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

getTrueCourse

public double getTrueCourse()
Returns the true course, measured in degrees.

Returns:
the true course, measured in degrees

getGroundSpeedKnots

public double getGroundSpeedKnots()
Returns the ground speed, measured in knots.

Returns:
the ground speed, measured in knots

getDataStatus

public String getDataStatus()
Returns the data status ( "A" = ok, "V" = warning ).

Returns:
the data status

getFixDate

public Date getFixDate()
Returns the date of fix.

Returns:
the date of fix

getMagneticVariation

public double getMagneticVariation()
Returns the magnetic variation.

Returns:
the magnetic variation

getMagneticVariationDirection

public String getMagneticVariationDirection()
Returns the direction of the magnetic variation.

Returns:
the direction of the magnetic variation

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.