Package annotation.dataselect
Class AnnotationDataSelector<TDataAnnotation extends DataAnnotation>
java.lang.Object
PamguardMVC.dataSelector.DataSelector
annotation.dataselect.AnnotationDataSelector<TDataAnnotation>
- Direct Known Subclasses:
DLDataSelector
,ScalarDataSelector
,UserFormDataSelector
public abstract class AnnotationDataSelector<TDataAnnotation extends DataAnnotation>
extends DataSelector
-
Constructor Summary
ConstructorDescriptionAnnotationDataSelector
(DataAnnotationType<TDataAnnotation> annotationType, PamDataBlock pamDataBlock, String selectorName, boolean allowScores) -
Method Summary
Modifier and TypeMethodDescriptionNeed a longer more unique name when making compound data selectors, particularly those which are pulling in multiple similar super detections which might be from different datablocks, but might be given the same name.double
scoreData
(PamDataUnit pamDataUnit) Score a PAMDataUnit.Methods inherited from class PamguardMVC.dataSelector.DataSelector
findDataSelector, getDescription, getDialogButton, getDialogButton, getDialogPaneFX, getDialogPanel, getMenuItem, getPamDataBlock, getParams, getSelectorName, getSelectorTitle, getSQLSelectClause, isAllowScores, setParams, setSelectorTitle, showSelectDialog
-
Constructor Details
-
AnnotationDataSelector
public AnnotationDataSelector(DataAnnotationType<TDataAnnotation> annotationType, PamDataBlock pamDataBlock, String selectorName, boolean allowScores)
-
-
Method Details
-
getAnnotationType
- Returns:
- the annotationType
-
scoreData
Description copied from class:DataSelector
Score a PAMDataUnit. this is used in preference to a boolean select function so that the user can add different return flags. Generally 0 indicates false.- Specified by:
scoreData
in classDataSelector
- Parameters:
pamDataUnit
- - the input data unit.- Returns:
- score of data out. 0 usually indicates false.
-
getLongSelectorName
Description copied from class:DataSelector
Need a longer more unique name when making compound data selectors, particularly those which are pulling in multiple similar super detections which might be from different datablocks, but might be given the same name.- Overrides:
getLongSelectorName
in classDataSelector
- Returns:
-