Localiser
Class DetectionGrouper<t extends PamDetection>

java.lang.Object
  extended by Localiser.DetectionGrouper<t>
Direct Known Subclasses:
WhistleDetectionGrouper

public abstract class DetectionGrouper<t extends PamDetection>
extends java.lang.Object


Field Summary
private  GroupedSourceParameters groupedSourceParameters
           
private  java.util.ArrayList<t> matches
           
(package private)  int nGroups
           
private  PamControlledUnit pamControlledUnit
           
private  PamDataBlock<t> sourceDataBlock
           
 
Constructor Summary
DetectionGrouper(PamControlledUnit pamControlledUnit, PamDataBlock<t> sourceDataBlock)
           
 
Method Summary
 java.util.ArrayList<t> findGroups(t pamDetection)
          Call this just before a detection is added to a PamDataBlock so that localisation information can be added to the detection before it goes off into the PAMGUARD system.
abstract  boolean match(PamDetection currentData, PamDetection olderData)
           
 void setupGroups(GroupedSourceParameters groupedSourceParameters)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pamControlledUnit

private PamControlledUnit pamControlledUnit

sourceDataBlock

private PamDataBlock<t extends PamDetection> sourceDataBlock

groupedSourceParameters

private GroupedSourceParameters groupedSourceParameters

nGroups

int nGroups

matches

private java.util.ArrayList<t extends PamDetection> matches
Constructor Detail

DetectionGrouper

public DetectionGrouper(PamControlledUnit pamControlledUnit,
                        PamDataBlock<t> sourceDataBlock)
Method Detail

setupGroups

public void setupGroups(GroupedSourceParameters groupedSourceParameters)

findGroups

public java.util.ArrayList<t> findGroups(t pamDetection)
Call this just before a detection is added to a PamDataBlock so that localisation information can be added to the detection before it goes off into the PAMGUARD system.

Parameters:
pamDetection - new Detection
Returns:
list of matches to this detection.

match

public abstract boolean match(PamDetection currentData,
                              PamDetection olderData)