Package qa.monitor
Class TimeDetectionMatcher
java.lang.Object
qa.monitor.TimeDetectionMatcher
- All Implemented Interfaces:
DetectionMatcher<PamDataUnit>
- Direct Known Subclasses:
TimeFreqDetectionMatcher,TimeWindowMatcher
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()doublegetOverlap(PamDataUnit detection, QASoundDataUnit qaSound) Get the overlap between the qaSound and the detection.longlongbooleanvoidsetPostWindowMillis(long postWindowMillis) voidsetPreWindowMillis(long preWindowMillis) booleanshowSettings(Object parentWindow) show the settings dialog
-
Constructor Details
-
TimeDetectionMatcher
public TimeDetectionMatcher()
-
-
Method Details
-
getOverlap
Description copied from interface:DetectionMatcherGet 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:
getOverlapin interfaceDetectionMatcher<PamDataUnit>- Parameters:
detection-qaSound-- Returns:
-
hasSettings
public boolean hasSettings()- Specified by:
hasSettingsin interfaceDetectionMatcher<PamDataUnit>- Returns:
- True if there is a settings dialog
-
showSettings
Description copied from interface:DetectionMatchershow the settings dialog- Specified by:
showSettingsin interfaceDetectionMatcher<PamDataUnit>- Parameters:
parentWindow- parent window- Returns:
- true if settings were OK'd.
-
getName
- Specified by:
getNamein interfaceDetectionMatcher<PamDataUnit>- Returns:
- The name of the match system
-
getDescription
- Specified by:
getDescriptionin interfaceDetectionMatcher<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
-