|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.iu.gps.NMEA
NMEA0183 message parser. Uses reflection to be able to easily specify new NMEA messages (see below: sentenceDef).
Field Summary | |
static java.lang.String[] |
sentenceDef
Definition of understood NMEA0183 sentences. |
Constructor Summary | |
NMEA()
|
Method Summary | |
static void |
main(java.lang.String[] arg)
Main method |
static boolean |
parse(java.lang.String sentence,
GPSInfo info)
Parses a given NMEA0183 message (usually from GPS device) and automatically converts the parsed values to fit into the given info structure. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String[] sentenceDef
$GPTST,lat,long
$GPTST
, and two
parameters lat and long. Those two values are automatically parsed and
stored inside the GPSInfo class, in the fields with names lat and long. The
type of the value is automatically converted to fit the type of the fields.Constructor Detail |
public NMEA()
Method Detail |
public static boolean parse(java.lang.String sentence, GPSInfo info)
sentence
- NMEA sentence to parseinfo
- Object to fill in values from sentencepublic static void main(java.lang.String[] arg) throws java.lang.Exception
arg
- User argumentsjava.lang.Exception
- Throws all exeptions
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |