Package PamUtils.time.nmea
Class PamNMEATime
java.lang.Object
PamUtils.time.nmea.PamNMEATime
- All Implemented Interfaces:
PamSettings
,SettingsNameProvider
,PCTimeCorrector
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
long
int
A status flag ?int
Likely update interval - can return 0 for very frequency updates (e.g.void
newNMEAData
(NMEADataUnit nmeaDataUnit) boolean
restoreSettings
(PamControlledUnitSettings pamControlledUnitSettings) boolean
showDialog
(Window frame) show a dialog to configure the systemboolean
start()
Start the systemvoid
stop()
Stop the system
-
Constructor Details
-
PamNMEATime
-
-
Method Details
-
getUnitName
- Specified by:
getUnitName
in interfaceSettingsNameProvider
- Returns:
- A Name specific to this instance of the particular class, e.g. Sperm whale detector, Beaked whale detector, etc.
-
getName
- Specified by:
getName
in interfacePCTimeCorrector
- Returns:
- Name of the time corrector
-
getSource
- Specified by:
getSource
in interfacePCTimeCorrector
- Returns:
- Name of the source for logging (e.g. NMEA string or NTP server name)
-
showDialog
Description copied from interface:PCTimeCorrector
show a dialog to configure the system- Specified by:
showDialog
in interfacePCTimeCorrector
- Returns:
- OK if dialog was OK'd
-
getUpdateInterval
public int getUpdateInterval()Description copied from interface:PCTimeCorrector
Likely update interval - can return 0 for very frequency updates (e.g. NMEA data)- Specified by:
getUpdateInterval
in interfacePCTimeCorrector
- Returns:
- update interval in seconds
-
stop
public void stop()Description copied from interface:PCTimeCorrector
Stop the system- Specified by:
stop
in interfacePCTimeCorrector
-
start
public boolean start()Description copied from interface:PCTimeCorrector
Start the system- Specified by:
start
in interfacePCTimeCorrector
- Returns:
- true if it seemed to get started OK.
-
newNMEAData
-
getStatus
public int getStatus()Description copied from interface:PCTimeCorrector
A status flag ?- Specified by:
getStatus
in interfacePCTimeCorrector
- Returns:
-
getUnitType
- Specified by:
getUnitType
in interfacePamSettings
- Returns:
- A Name specific to the type, e.g. Click detector
-
getSettingsReference
- Specified by:
getSettingsReference
in interfacePamSettings
- Returns:
- The serialisable object that will be stored
-
getSettingsVersion
public long getSettingsVersion()- Specified by:
getSettingsVersion
in interfacePamSettings
- Returns:
- An integer version number for the settings
-
restoreSettings
- Specified by:
restoreSettings
in interfacePamSettings
- Returns:
- true if successful The object performs final checks (if needed) and then casts the settings data pamcontrolledunitSettings.settings into the correct type and uses as required
-