Package metadata
Class MetaDataContol
java.lang.Object
PamController.PamControlledUnit
metadata.MetaDataContol
- All Implemented Interfaces:
PamSettings
,SettingsNameProvider
Class to handle Project MetaData. Am making this a PAMControlledUnit, but may never
register it with the model ? Will see what advantages and disadvantages there are.
- Author:
- dg50
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateMenu
(JFrame parentFrame) Get PAMGuard Metadata.static MetaDataContol
Easy getter for singleton MetaData controller.long
boolean
restoreSettings
(PamControlledUnitSettings pamControlledUnitSettings) void
setMetaData
(PamguardMetaData metaData) Set the meta data object.Methods inherited from class PamController.PamControlledUnit
addOfflineTaskGroup, addOtherRelatedMenuItems, addPamProcess, addPamProcess, addRelatedMenuItems, canClose, canPlayViewerSound, createDetectionMenu, createDisplayMenu, createFileMenu, createHelpMenu, flushDataBlockBuffers, getBackupInformation, getFrameNumber, getGUI, getGuiFrame, getInstanceIndex, getModuleStatus, getModuleStatusManager, getModuleSummary, getModuleSummary, getNumOfflineTaskGroups, getNumPamProcesses, getOfflineState, getOfflineTaskGroup, getPamConfiguration, getPamController, getPamModuleInfo, getPamProcess, getPamView, getPlugin, getShortUnitType, getSidePanel, getTabClipCopier, getTabPanel, getTabSpecificMenuBar, getToolbarComponent, getUnitName, getUnitType, getVerboseLevel, gotoTab, isInMainConfiguration, isNetRx, isViewer, notifyModelChanged, pamClose, pamHasStopped, pamToStart, playViewerSound, removePamProcess, removeUnit, rename, saveViewerData, setFrameNumber, setModuleStatusManager, setPamConfiguration, setPamController, setPamModuleInfo, setPamView, setSidePanel, setTabPanel, setToolbarComponent, setupControlledUnit, stopViewerSound, tellModule, terminalPrint, terminalPrintln, toString
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface PamController.PamSettings
getUnitType
Methods inherited from interface PamController.SettingsNameProvider
getUnitName
-
Field Details
-
unitType
- See Also:
-
-
Method Details
-
getMetaDataControl
Easy getter for singleton MetaData controller.- Returns:
- meta data controller
-
getMetaData
Get PAMGuard Metadata. This contains a nilus Deployment object wrapped up so that it can be serialised into other PAMGuard settings.- Returns:
- PAMGuard meta data
-
setMetaData
Set the meta data object.- Parameters:
metaData
-
-
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
-
createMenu
-