com.buglabs.nmea.sentences
Class PositionSentence

java.lang.Object
  extended by com.buglabs.nmea.sentences.NMEASentence
      extended by com.buglabs.nmea.sentences.PositionSentence
Direct Known Subclasses:
GGA, RMC

public abstract class PositionSentence
extends NMEASentence

A NMEA class for position.


Field Summary
 
Fields inherited from class com.buglabs.nmea.sentences.NMEASentence
checksum, type
 
Constructor Summary
PositionSentence(java.lang.String type)
           
 
Method Summary
 java.lang.String getLatitude()
           
 DegreesMinutesSeconds getLatitudeAsDMS()
           
 java.lang.String getLongitude()
           
 DegreesMinutesSeconds getLongitudeAsDMS()
           
 boolean isEmpty()
           
protected  void setLatitude(java.lang.String latitude)
           
protected  void setLongitude(java.lang.String longitude)
           
 
Methods inherited from class com.buglabs.nmea.sentences.NMEASentence
getChecksum, isValid, parse, setChecksum
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PositionSentence

public PositionSentence(java.lang.String type)
Method Detail

getLatitude

public java.lang.String getLatitude()

isEmpty

public boolean isEmpty()
Returns:
true if either longitude or latitude are null or empty, false otherwise.

setLatitude

protected void setLatitude(java.lang.String latitude)

getLongitude

public java.lang.String getLongitude()

getLatitudeAsDMS

public DegreesMinutesSeconds getLatitudeAsDMS()

getLongitudeAsDMS

public DegreesMinutesSeconds getLongitudeAsDMS()

setLongitude

protected void setLongitude(java.lang.String longitude)