Package metadata

Class MetaDataContol

All Implemented Interfaces:
PamSettings, SettingsNameProvider

public class MetaDataContol extends PamControlledUnit implements PamSettings
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 Details

  • Method Details

    • getMetaDataControl

      public static MetaDataContol getMetaDataControl()
      Easy getter for singleton MetaData controller.
      Returns:
      meta data controller
    • getMetaData

      public PamguardMetaData 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

      public void setMetaData(PamguardMetaData metaData)
      Set the meta data object.
      Parameters:
      metaData -
    • getSettingsReference

      public Serializable getSettingsReference()
      Specified by:
      getSettingsReference in interface PamSettings
      Returns:
      The serialisable object that will be stored
    • getSettingsVersion

      public long getSettingsVersion()
      Specified by:
      getSettingsVersion in interface PamSettings
      Returns:
      An integer version number for the settings
    • restoreSettings

      public boolean restoreSettings(PamControlledUnitSettings pamControlledUnitSettings)
      Specified by:
      restoreSettings in interface PamSettings
      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

      public JMenuItem createMenu(JFrame parentFrame)