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