Package whistlesAndMoans.dataSelector
Class WMDDataSelector
java.lang.Object
PamguardMVC.dataSelector.DataSelector
whistlesAndMoans.dataSelector.WMDDataSelector
-
Constructor Summary
ConstructorDescriptionWMDDataSelector
(WhistleMoanControl wmControl, PamDataBlock pamDataBlock, String selectorName, boolean allowScores) -
Method Summary
Modifier and TypeMethodDescriptionGet selection parameters for more organised centralised storage.double
scoreData
(PamDataUnit pamDataUnit) Score a PAMDataUnit.void
setParams
(DataSelectParams dataSelectParams) Set selection parameters from centralised storage.void
setWmAlarmParameters
(WMAlarmParameters wmAlarmParameters) Methods inherited from class PamguardMVC.dataSelector.DataSelector
findDataSelector, getDescription, getDialogButton, getDialogButton, getLongSelectorName, getMenuItem, getPamDataBlock, getSelectorName, getSelectorTitle, getSQLSelectClause, isAllowScores, setSelectorTitle, showSelectDialog
-
Constructor Details
-
WMDDataSelector
public WMDDataSelector(WhistleMoanControl wmControl, PamDataBlock pamDataBlock, String selectorName, boolean allowScores)
-
-
Method Details
-
getDialogPanel
- Specified by:
getDialogPanel
in classDataSelector
- Returns:
- a dialog panel which can be used in a wider dialog
-
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.
-
getWmAlarmParameters
- Returns:
- the wmAlarmParameters
-
setWmAlarmParameters
- Parameters:
wmAlarmParameters
- the wmAlarmParameters to set
-
setParams
Description copied from class:DataSelector
Set selection parameters from centralised storage.- Specified by:
setParams
in classDataSelector
-
getParams
Description copied from class:DataSelector
Get selection parameters for more organised centralised storage. This must never be null since all selectors have an enable / disable options added to them automatically in their dialogs.- Specified by:
getParams
in classDataSelector
- Returns:
-
getDialogPaneFX
- Specified by:
getDialogPaneFX
in classDataSelector
- Returns:
- a FX pane which can be used in a wider dialog
-