Package soundtrap

Class STClickControl

All Implemented Interfaces:
LocalisationAlgorithm, PamSensor, PamSettings, SettingsNameProvider

public class STClickControl extends ClickControl implements PamSensor
Author:
mo55
  • Field Details

  • Constructor Details

    • STClickControl

      public STClickControl(String name)
      Parameters:
      name -
  • Method Details

    • findRawDataBlock

      public PamRawDataBlock findRawDataBlock()
      Description copied from class: ClickControl
      Returns the raw data block
      Overrides:
      findRawDataBlock in class ClickControl
      Returns:
    • getUnitType

      public String getUnitType()
      Specified by:
      getUnitType in interface PamSensor
      Specified by:
      getUnitType in interface PamSettings
      Overrides:
      getUnitType in class PamControlledUnit
      Returns:
      A Name specific to the type, e.g. Click detector
    • getSTAcquisition

      public AcquisitionControl getSTAcquisition()
    • createDetectionMenu

      public JMenu createDetectionMenu(Frame parentFrame)
      Description copied from class: PamControlledUnit
      Create a JMenu object containing MenuItems associated with PamProcesses
      Overrides:
      createDetectionMenu in class ClickControl
      Parameters:
      parentFrame - The owner frame of the menu
      Returns:
      reference to a JMenu which can be added to an existing menu or menu bar

      Note that if multiple views are to use the same menu, then they should each create a new menu (by setting Create to true) the first time they call this method.

    • pamStart

      public void pamStart()
      Overrides:
      pamStart in class ClickControl
    • pamStop

      public void pamStop()
      Overrides:
      pamStop in class ClickControl
    • notifyModelChanged

      public void notifyModelChanged(int changeType)
      Description copied from class: PamControlledUnit
      General notification when the PAMGAURD model changes.
      Overrides:
      notifyModelChanged in class ClickControl
      Parameters:
      changeType - type of change
    • updateDisplayScrollers

      public void updateDisplayScrollers(long timeMillis)
      Called when running SUD file data to find and scroll the BT Display's
      Parameters:
      timeMillis -
    • restoreSettings

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

      public org.pamguard.x3.sud.SUDClickDetectorInfo getSudClickDetectorInfo()
      Returns:
      the sudClickDetectorInfo
    • setSudClickDetectorInfo

      public void setSudClickDetectorInfo(org.pamguard.x3.sud.SUDClickDetectorInfo sudClickDetectorInfo)
      Parameters:
      sudClickDetectorInfo - the sudClickDetectorInfo to set
    • getSensorDescription

      public String getSensorDescription()
      Specified by:
      getSensorDescription in interface PamSensor
    • getSensorId

      public String getSensorId()
      Specified by:
      getSensorId in interface PamSensor