|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lejos.addon.gps.NMEASentence
public abstract class NMEASentence
Class designed to manage all NMEA Sentence. GGA and RMC Sentence needs to validate data. This class has methods to validate received data
Field Summary | |
---|---|
protected String |
nmeaSentence
|
protected StringTokenizer |
st
|
Constructor Summary | |
---|---|
NMEASentence()
|
Method Summary | |
---|---|
protected void |
checkRefresh()
This method is called by all the getter methods. |
protected double |
degreesMinToDegrees(String dd_mm)
Any GPS Receiver gives Lat/Lon data in the following way: http://www.gpsinformation.org/dale/nmea.htm http://www.teletype.com/pages/support/Documentation/RMC_log_info.htm 4807.038,N Latitude 48 deg 07.038' N 01131.000,E Longitude 11 deg 31.000' E This data is necessary to convert to Decimal Degrees. |
abstract String |
getHeader()
Retrieve the header constant for this sentence. |
long |
getTimeStamp()
This method returns the system time at which the data for the NMEA Sentence was collected. |
static boolean |
isValid(String sentence)
Return if your NMEA Sentence is valid or not |
protected abstract void |
parse(String sentence)
Abstract method to parse out all relevant data from the nmeaSentence. |
void |
setSentence(String sentence)
Set a new nmea sentence into the object |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String nmeaSentence
protected StringTokenizer st
Constructor Detail |
---|
public NMEASentence()
Method Detail |
---|
public abstract String getHeader()
public void setSentence(String sentence)
sentence
- public long getTimeStamp()
protected void checkRefresh()
protected abstract void parse(String sentence)
public static boolean isValid(String sentence)
sentence
- the NMEA sentence
protected double degreesMinToDegrees(String dd_mm)
dd_mm
- the day and month
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |