public class GpxLogger extends java.lang.Object implements GpsLogger
Constructor and Description |
---|
GpxLogger() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Stop using this format of logger.
|
void |
logJSON(java.util.Map<java.lang.String,java.lang.Object> jsonMsg,
GpsFix fix,
SatelliteCatalog satelliteCatalog,
java.lang.String source)
Log this GPS JSON event that was received from GPSD.
|
void |
logNMEA(java.lang.String nmeaSentence,
GpsFix fix,
SatelliteCatalog satelliteCatalog,
java.lang.String source)
Log this GPS event that was reported as an ASCII NMEA sentence.
|
void |
open()
Set up for logging using a new format.
|
void |
shutdown()
Do whatever cleanup this object needs for program shutdown.
|
public void open()
public void logNMEA(java.lang.String nmeaSentence, GpsFix fix, SatelliteCatalog satelliteCatalog, java.lang.String source)
logNMEA
in interface GpsLogger
nmeaSentence
- String of the NMEA sentence to logfix
- the GpsFix object that has been updated (if necessary) by the NMEA sentence, or null if not changedsatelliteCatalog
- the SatelliteCatalog that has been updated (if necessary) by the sentence, or null if not changedsource
- String name of remote GPS, or null if it is GPS data for the local stationpublic void logJSON(java.util.Map<java.lang.String,java.lang.Object> jsonMsg, GpsFix fix, SatelliteCatalog satelliteCatalog, java.lang.String source)
logJSON
in interface GpsLogger
jsonMsg
- Map<String, Object> of the JSON structure, as returned by Json
fix
- the GpsFix object that has been updated (if necessary) by the JSON structure, or null if not changedsatelliteCatalog
- the SatelliteCatalog that has been updated (if necessary) by the JSON structuresource
- String name of remote GPS, or null if it is GPS data for the local stationpublic void close()
public void shutdown()
shutdown
in interface ShutdownHandler