Package GPS
Class GPSClockUpdater
java.lang.Object
GPS.GPSClockUpdater
Functions for PC clock updates from GPS. Separated out from UpdateClockDialog so
that's it's easier to run stand alone in -nogui operation, and just to make neater
and cleaner code.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddObserver(ClockUpdateObserver updateObserver) Add an observer of clock updateslongnewGPSData(GpsDataUnit gpsDataUnit) Receive GPS data.booleanremoveObserver(ClockUpdateObserver updateObserver) Remove a clock update observer.voidTell it to update on the next reasonable NMEA time string.
-
Constructor Details
-
GPSClockUpdater
-
-
Method Details
-
newGPSData
Receive GPS data. Unpack it and see if there is a reasonable time.- Parameters:
nmeaDataUnit-
-
addObserver
Add an observer of clock updates- Parameters:
updateObserver-
-
removeObserver
Remove a clock update observer.- Parameters:
updateObserver-- Returns:
-
updateOnNext
public void updateOnNext()Tell it to update on the next reasonable NMEA time string.
-