Package qa.monitor

Class TimeDetectionMatcher

java.lang.Object
qa.monitor.TimeDetectionMatcher
All Implemented Interfaces:
DetectionMatcher<PamDataUnit>
Direct Known Subclasses:
TimeFreqDetectionMatcher, TimeWindowMatcher

public class TimeDetectionMatcher extends Object implements DetectionMatcher<PamDataUnit>
  • Constructor Details

    • TimeDetectionMatcher

      public TimeDetectionMatcher()
  • Method Details

    • getOverlap

      public double getOverlap(PamDataUnit detection, QASoundDataUnit qaSound)
      Description copied from interface: DetectionMatcher
      Get the overlap between the qaSound and the detection. This is reported as the percentage of the qaSound which is covered by the detection
      Specified by:
      getOverlap in interface DetectionMatcher<PamDataUnit>
      Returns:
    • hasSettings

      public boolean hasSettings()
      Specified by:
      hasSettings in interface DetectionMatcher<PamDataUnit>
      Returns:
      True if there is a settings dialog
    • showSettings

      public boolean showSettings(Object parentWindow)
      Description copied from interface: DetectionMatcher
      show the settings dialog
      Specified by:
      showSettings in interface DetectionMatcher<PamDataUnit>
      Parameters:
      parentWindow - parent window
      Returns:
      true if settings were OK'd.
    • getName

      public String getName()
      Specified by:
      getName in interface DetectionMatcher<PamDataUnit>
      Returns:
      The name of the match system
    • getDescription

      public String getDescription()
      Specified by:
      getDescription in interface DetectionMatcher<PamDataUnit>
      Returns:
      a longer description, perhaps including any parameters describing how this is configured
    • getPreWindowMillis

      public long getPreWindowMillis()
      Returns:
      the preWindowMillis
    • setPreWindowMillis

      public void setPreWindowMillis(long preWindowMillis)
      Parameters:
      preWindowMillis - the preWindowMillis to set
    • getPostWindowMillis

      public long getPostWindowMillis()
      Returns:
      the postWindowMillis
    • setPostWindowMillis

      public void setPostWindowMillis(long postWindowMillis)
      Parameters:
      postWindowMillis - the postWindowMillis to set