Package Map

Class MapDetectionsManager

java.lang.Object
Map.MapDetectionsManager
All Implemented Interfaces:
PamSettings, SettingsNameProvider

public class MapDetectionsManager extends Object implements PamSettings
Holds information about all things plotted on the map, primarily how long they should plot for and whether they are currently enabled or not.
Will try to have an ever increasing list of data blocks, identified by name.
Author:
Douglas Gillespie
  • Constructor Details

    • MapDetectionsManager

      public MapDetectionsManager(SimpleMap mapControl)
  • Method Details

    • notifyModelChanged

      public void notifyModelChanged(int changeType)
    • createBlockList

      public void createBlockList()
    • findDetectionData

      public MapDetectionData findDetectionData(PamDataBlock pamDataBlock)
    • getMapDetectionDatas

      public ArrayList<MapDetectionData> getMapDetectionDatas()
    • setShouldPlot

      public void setShouldPlot(String pamDataBlock, boolean shouldPlot)
    • setShouldPlot

      public void setShouldPlot(PamDataBlock pamDataBlock, boolean shouldPlot)
    • isShouldPlot

      public boolean isShouldPlot(String pamDataBlock)
    • isShouldPlot

      public boolean isShouldPlot(PamDataBlock pamDataBlock)
    • getSettingsReference

      public Serializable getSettingsReference()
      functions for storing of settings ...
      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
    • getUnitName

      public String getUnitName()
      Specified by:
      getUnitName in interface SettingsNameProvider
      Returns:
      A Name specific to this instance of the particular class, e.g. Sperm whale detector, Beaked whale detector, etc.
    • getUnitType

      public String getUnitType()
      Specified by:
      getUnitType in interface PamSettings
      Returns:
      A Name specific to the type, e.g. Click detector
    • 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
    • getMapDetectionsParameters

      public MapDetectionsParameters getMapDetectionsParameters()
    • setMapDetectionsParameters

      public void setMapDetectionsParameters(MapDetectionsParameters mapDetectionsParameters)
    • getDefaultTime

      public int getDefaultTime()
    • setDefaultTime

      public void setDefaultTime(int defaultTime)