Package PamUtils.time
Interface PCTimeCorrector
- All Known Implementing Classes:
NullTimeCorrector
,PamNMEATime
,PamNTPTime
public interface PCTimeCorrector
Interface for anything that is capable of making estimates of PC time corrections
e.g. from NMEA and NTP server data.
- Author:
- Doug
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
int
A status flag ?int
Likely update interval - can return 0 for very frequency updates (e.g.boolean
showDialog
(Window frame) show a dialog to configure the systemboolean
start()
Start the systemvoid
stop()
Stop the system
-
Method Details
-
getName
String getName()- Returns:
- Name of the time corrector
-
getSource
String getSource()- Returns:
- Name of the source for logging (e.g. NMEA string or NTP server name)
-
showDialog
show a dialog to configure the system- Parameters:
frame
-- Returns:
- OK if dialog was OK'd
-
getUpdateInterval
int getUpdateInterval()Likely update interval - can return 0 for very frequency updates (e.g. NMEA data)- Returns:
- update interval in seconds
-
stop
void stop()Stop the system -
start
boolean start()Start the system- Returns:
- true if it seemed to get started OK.
-
getStatus
int getStatus()A status flag ?- Returns:
-