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

    • TimeDetectionMatcher Link icon

      public TimeDetectionMatcher()
  • Method Details Link icon

    • getOverlap Link icon

      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>
      Parameters:
      detection -
      qaSound -
      Returns:
    • hasSettings Link icon

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

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

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

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

      public long getPreWindowMillis()
      Returns:
      the preWindowMillis
    • setPreWindowMillis Link icon

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

      public long getPostWindowMillis()
      Returns:
      the postWindowMillis
    • setPostWindowMillis Link icon

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