Class TestConsumer
java.lang.Object
likelihoodDetectionModule.thresholdDetector.TestConsumer
- All Implemented Interfaces:
 FilteredConsumer
Implements the FilteredConsumer interface.  This is used only for the UnitTest for this package.
- Author:
 - Dave Flogeras
 
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassSimple class to collect some info about update events for the UnitTest. - 
Method Summary
Modifier and TypeMethodDescriptionvoidendDetection(DetectionKey key) This method is called to end an existing detection pre-condition: startDetection has been previously called with the same channelMask/band.events()voidThis method is called when a new detection starts on the given channel and bandbooleanupdateDetection(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. 
- 
Method Details
- 
startDetection
Description copied from interface:FilteredConsumerThis method is called when a new detection starts on the given channel and band- Specified by:
 startDetectionin interfaceFilteredConsumer- Parameters:
 key- The key associated with the starting detection
 - 
updateDetection
Description copied from interface:FilteredConsumerThis 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.- Specified by:
 updateDetectionin interfaceFilteredConsumer- Parameters:
 key- The key of the detectionndu- The data for the update.- Returns:
 - true if successfully updates, false otherwise (ie. an event arrived for a channelMask/band that wasn't previously started
 
 - 
endDetection
Description copied from interface:FilteredConsumerThis method is called to end an existing detection pre-condition: startDetection has been previously called with the same channelMask/band. Ignores the request if the key had not been started.- Specified by:
 endDetectionin interfaceFilteredConsumer- Parameters:
 key- The key associated with the ending detection.
 - 
events
 
 -