Class WhistleToneConnectProcess

java.lang.Object
PamguardMVC.PamProcess
whistlesAndMoans.WhistleToneConnectProcess
All Implemented Interfaces:
PamObserver, ProcessAnnotator

public class WhistleToneConnectProcess extends PamProcess
  • Field Details

  • Constructor Details

    • WhistleToneConnectProcess

      public WhistleToneConnectProcess(WhistleMoanControl whitesWhistleControl)
  • Method Details

    • newData

      public void newData(PamObservable o, PamDataUnit arg)
      Overrides:
      newData in class PamProcess
    • pamStart

      public void pamStart()
      Description copied from class: PamProcess
      Called for each process to tell it to start (may not be necessary for processes which are listening for data anyway).
      Specified by:
      pamStart in class PamProcess
    • pamStop

      public void pamStop()
      Description copied from class: PamProcess
      Stops the process.
      Specified by:
      pamStop in class PamProcess
    • setupProcess

      public void setupProcess()
      Description copied from class: PamProcess
      called for every process once the systemmodel has been created. this is a good time to check out and find input data blocks and similar tasks.
      Overrides:
      setupProcess in class PamProcess
    • prepareProcess

      public void prepareProcess()
      Description copied from class: PamProcess
      Called for each process before any of them receive the PamStart command
      Overrides:
      prepareProcess in class PamProcess
    • findShapeConnector

      public WhistleToneConnectProcess.ShapeConnector findShapeConnector(int channelMap)
      Find the appropriate shape connector for the given channels. The first time this gets called in viewer mode, there will be nothing there,so call setupProcess to create them.
      Parameters:
      channelMap - channel bitmap we're looking for.
      Returns:
      a ShapeConnector or null if the channelMap doesn't match any existing connectors for this configuration.
    • getOutputData

      public ConnectedRegionDataBlock getOutputData()
    • getFrequencyRange

      public double[] getFrequencyRange()
      Description copied from class: PamProcess
      Get the range of frequencies over which the data in this process are likely to be present. Note that this is pretty crude and may not reflect the true range, for example, the click detector will return the limits of it's trigger filter, and there are plenty of sounds outside of that range which may have most of their energy well outside of the trigger range of the detector.
      Overrides:
      getFrequencyRange in class PamProcess
      Returns:
      Nominal frequency range for data in this block.
    • getDurationRange

      public double[] getDurationRange()
    • getDelayScale

      public int getDelayScale()
      When delay data are written to binary files, int16's are used, but these must be scaled up to allow for sub-sample timing. How much they can be scaled depends a lot on the array spacing, sample rate and FFT length.
      Returns:
      scale factor which will give the highest timing resolution without overflows.
    • processNewBuoyData

      public void processNewBuoyData(BuoyStatusDataUnit statusDataUnit, PamDataUnit dataUnit)
      Overrides:
      processNewBuoyData in class PamProcess
    • getFFTInputList

      public List<FFTDataUnit> getFFTInputList(ConnectedRegion connectedRegion, int channelBitmap)
      Get the list of FFT data that input into a connected region the given channel list.
      Parameters:
      connectedRegion - connected region.
      channelBitmap - required channels
      Returns:
      channel interleaved list of FFT data.
    • getModuleSummary

      public String getModuleSummary(boolean clear)
    • getLocAlgorithmInfo

      public LocalisationAlgorithmInfo getLocAlgorithmInfo()
      Get info on current localisation algorithm. Grab the BL from the first group that has one.
      Returns: