|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.dinopolis.gpstool.gpsinput.nmea.NMEA0183Sentence
This class represents a NMEA 0183 sentence as it is sent from a gps receiver or similar devices. See http://www.poly-electronic.ch/dok-gps/nmea-faq.txt for details about this standard.
Constructor Summary | |
NMEA0183Sentence(byte[] raw_data,
int offset,
int length)
Initialize a new NMEA 0183 sentence with the given raw data. |
|
NMEA0183Sentence(char[] raw_data)
Initialize a new NMEA 0183 sentence with the given raw data. |
|
NMEA0183Sentence(char[] raw_data,
int offset,
int length)
Initialize a new NMEA 0183 sentence with the given raw data. |
|
NMEA0183Sentence(java.lang.String raw_data)
Initialize a new NMEA 0183 sentence with the given raw data. |
Method Summary | |
boolean |
equals(NMEA0183Sentence object)
|
boolean |
equals(java.lang.Object object)
|
byte |
getCalculatedChecksum()
Returns the calculated checksum of this NMEA sentence. |
byte |
getChecksum()
Returns the checksum of this NMEA sentence. |
java.util.List |
getDataFields()
Returns the data fields of this NMEA sentence. |
java.lang.String |
getSentenceId()
Returns the sentence id of this NMEA sentence. |
java.lang.String |
getTalkerId()
Returns the talker id of this NMEA sentence. |
boolean |
isValid()
Returns true if the sentence is valid (by using the checksum). |
static void |
main(java.lang.String[] args)
|
java.lang.String |
toString()
Returns the string representation of this NMEA sentence. |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public NMEA0183Sentence(java.lang.String raw_data)
raw_data
- the raw data to be parsed.public NMEA0183Sentence(byte[] raw_data, int offset, int length)
raw_data
- the raw data to be parsed.offset
- the offset in the bufferlength
- the lengthpublic NMEA0183Sentence(char[] raw_data, int offset, int length)
raw_data
- the raw data to be parsed.offset
- the offset in the bufferlength
- the lengthpublic NMEA0183Sentence(char[] raw_data)
raw_data
- the raw data to be parsed.Method Detail |
public java.lang.String getTalkerId()
public java.lang.String getSentenceId()
public java.util.List getDataFields()
public byte getChecksum()
public byte getCalculatedChecksum()
public boolean isValid()
public boolean equals(NMEA0183Sentence object)
public boolean equals(java.lang.Object object)
public java.lang.String toString()
public static void main(java.lang.String[] args)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |