public class FilteredDetectionWriter extends java.lang.Object implements FilteredConsumer
Constructor and Description |
---|
FilteredDetectionWriter(PamDataBlock<ThresholdDetectorDataUnit> outputBlock,
java.util.ArrayList<SignalBand> signalBands,
java.lang.String targetIdentifier,
double estimatedPeakTimeAccuracy)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
endDetection(DetectionKey key)
This method is called to end an existing detection
pre-condition: startDetection has been previously called with the same channelMask/band.
|
void |
startDetection(DetectionKey key)
This method is called when a new detection starts on the given channel and band
|
boolean |
updateDetection(DetectionKey key,
NormalizedDataUnit ndu)
This method is called to append a DetectionEvent to a running detection
pre-condition: startDetection has been called for the given key (channelMask and band)
At least one update will be given per detection.
|
public FilteredDetectionWriter(PamDataBlock<ThresholdDetectorDataUnit> outputBlock, java.util.ArrayList<SignalBand> signalBands, java.lang.String targetIdentifier, double estimatedPeakTimeAccuracy)
outputBlock
- The output block we will put our ThresholdDetectionDataUnits intosignalBands
- A list of SignalBands. Their order is the same order that the data[] field in the NormalizedDataUnit.targetIdentifier
- The identifier for this target. This is concatenated with the band identifier to create a detection type.estimatedPeakTimeAccuracy
- public void startDetection(DetectionKey key)
FilteredConsumer
startDetection
in interface FilteredConsumer
key
- The key associated with the starting detectionpublic boolean updateDetection(DetectionKey key, NormalizedDataUnit ndu)
FilteredConsumer
updateDetection
in interface FilteredConsumer
key
- The key of the detectionndu
- The data for the update.public void endDetection(DetectionKey key)
FilteredConsumer
endDetection
in interface FilteredConsumer
key
- The key associated with the ending detection.