Package PamUtils.time.nmea
Class PamNMEATime
java.lang.Object
PamUtils.time.nmea.PamNMEATime
- All Implemented Interfaces:
PamSettings,SettingsNameProvider,PCTimeCorrector
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()longintA status flag ?intLikely update interval - can return 0 for very frequency updates (e.g.voidnewNMEAData(NMEADataUnit nmeaDataUnit) booleanrestoreSettings(PamControlledUnitSettings pamControlledUnitSettings) booleanshowDialog(Window frame) show a dialog to configure the systembooleanstart()Start the systemvoidstop()Stop the system
-
Constructor Details
-
PamNMEATime
-
-
Method Details
-
getUnitName
- Specified by:
getUnitNamein interfaceSettingsNameProvider- Returns:
- A Name specific to this instance of the particular class, e.g. Sperm whale detector, Beaked whale detector, etc.
-
getName
- Specified by:
getNamein interfacePCTimeCorrector- Returns:
- Name of the time corrector
-
getSource
- Specified by:
getSourcein interfacePCTimeCorrector- Returns:
- Name of the source for logging (e.g. NMEA string or NTP server name)
-
showDialog
Description copied from interface:PCTimeCorrectorshow a dialog to configure the system- Specified by:
showDialogin interfacePCTimeCorrector- Parameters:
frame-- Returns:
- OK if dialog was OK'd
-
getUpdateInterval
public int getUpdateInterval()Description copied from interface:PCTimeCorrectorLikely update interval - can return 0 for very frequency updates (e.g. NMEA data)- Specified by:
getUpdateIntervalin interfacePCTimeCorrector- Returns:
- update interval in seconds
-
stop
public void stop()Description copied from interface:PCTimeCorrectorStop the system- Specified by:
stopin interfacePCTimeCorrector
-
start
public boolean start()Description copied from interface:PCTimeCorrectorStart the system- Specified by:
startin interfacePCTimeCorrector- Returns:
- true if it seemed to get started OK.
-
newNMEAData
-
getStatus
public int getStatus()Description copied from interface:PCTimeCorrectorA status flag ?- Specified by:
getStatusin interfacePCTimeCorrector- Returns:
-
getUnitType
- Specified by:
getUnitTypein interfacePamSettings- Returns:
- A Name specific to the type, e.g. Click detector
-
getSettingsReference
- Specified by:
getSettingsReferencein interfacePamSettings- Returns:
- The serialisable object that will be stored
-
getSettingsVersion
public long getSettingsVersion()- Specified by:
getSettingsVersionin interfacePamSettings- Returns:
- An integer version number for the settings
-
restoreSettings
- Specified by:
restoreSettingsin interfacePamSettings- Parameters:
pamControlledUnitSettings-- 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
-