Package tethys.species
Class SpeciesMapManager
java.lang.Object
tethys.species.SpeciesMapManager
- All Implemented Interfaces:
PamSettings
,SettingsNameProvider
Master manager for species maps which will eventually allow for export and import from XML
documents, databases and other things ...
(Perhaps not as XML, will simply output the serialized map - easier.
(Perhaps not as XML, will simply output the serialized map - easier.
- Author:
- dg50
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
exportSpeciesMaps
(Window parentFrame) Export all species maps to a serialized object file.getExportAction
(Window parentFrame) getImportAction
(Window parentFrame) static SpeciesMapManager
Get an instance of the global species manager.long
getSpeciesMap
(PamDataBlock pamDataBlock) boolean
importSpeciesMaps
(Window parentFrame) Import global species maps from selected file.boolean
restoreSettings
(PamControlledUnitSettings pamControlledUnitSettings)
-
Field Details
-
mapFileEnd
file end type for map files- See Also:
-
-
Method Details
-
getInstance
Get an instance of the global species manager. This handles look up tables for each datablock to convert from internal PAMGuard names to ITIS species codes and usefully call types for output to Tethys.- Returns:
-
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.
-
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
-
getSpeciesMap
-
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
-
getExportAction
-
getImportAction
-
exportSpeciesMaps
Export all species maps to a serialized object file.- Parameters:
parentFrame
-- Returns:
-
importSpeciesMaps
Import global species maps from selected file.- Parameters:
parentFrame
-- Returns:
-