Package clickDetector

Class ClickGroupDataBlock<t extends GroupDetection>

Direct Known Subclasses:
ClickTrainDataBlock

public class ClickGroupDataBlock<t extends GroupDetection> extends AcousticDataBlock<t>
Click Train data block deletes old data in a slightly different way to PamDataBlock. Where PamDataBlock starts at the beginning of the list and deletes items until one of them starts after the set time at which point it stops, ClickTrainDataBlock examins all units and deletes all of those which end before the set time. This is necessary since some click train data units last for hours, whereas others can be deleted after a couple of seconds.
Author:
Doug Gillespie
  • Constructor Details Link icon

    • ClickGroupDataBlock Link icon

      public ClickGroupDataBlock(Class pduClass, String dataName, PamProcess parentProcess, int channelMap)
  • Method Details Link icon

    • removeOldUnitsT Link icon

      protected int removeOldUnitsT(long currentTimeMS)
      Description copied from class: PamDataBlock
      Removes olderPamDataUnits from memory, starting at the first unit and continuing until if finds one with data coming earlier than the given time in milliseconds.

      If the data are acoustic, it tries to find the data source and looks to see how much data has been placed in the source data unit and does the calculation in samples.

      Overrides:
      removeOldUnitsT in class PamDataBlock<t extends GroupDetection>
      Parameters:
      currentTimeMS - Time in milliseconds of the first data which must be kept
      Returns:
      the number of units removed