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 Link icon

    • MapDetectionsManager Link icon

      public MapDetectionsManager(SimpleMap mapControl)
  • Method Details Link icon

    • notifyModelChanged Link icon

      public void notifyModelChanged(int changeType)
    • createBlockList Link icon

      public void createBlockList()
    • findDetectionData Link icon

      public MapDetectionData findDetectionData(PamDataBlock pamDataBlock)
    • getMapDetectionDatas Link icon

      public ArrayList<MapDetectionData> getMapDetectionDatas()
    • setShouldPlot Link icon

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

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

      public boolean isShouldPlot(String pamDataBlock)
    • isShouldPlot Link icon

      public boolean isShouldPlot(PamDataBlock pamDataBlock)
    • getSettingsReference Link icon

      public Serializable getSettingsReference()
      functions for storing of settings ...
      Specified by:
      getSettingsReference in interface PamSettings
      Returns:
      The serialisable object that will be stored
    • getSettingsVersion Link icon

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

      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 Link icon

      public String getUnitType()
      Specified by:
      getUnitType in interface PamSettings
      Returns:
      A Name specific to the type, e.g. Click detector
    • restoreSettings Link icon

      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 Link icon

      public MapDetectionsParameters getMapDetectionsParameters()
    • setMapDetectionsParameters Link icon

      public void setMapDetectionsParameters(MapDetectionsParameters mapDetectionsParameters)
    • getDefaultTime Link icon

      public int getDefaultTime()
    • setDefaultTime Link icon

      public void setDefaultTime(int defaultTime)