Package whistleClassifier.tethys
Class WslClassTethysProvider
java.lang.Object
tethys.pamdata.AutoTethysProvider
whistleClassifier.tethys.WslClassTethysProvider
- All Implemented Interfaces:
TethysDataProvider
-
Constructor Summary
ConstructorsConstructorDescriptionWslClassTethysProvider
(TethysControl tethysControl, WhistleClassifierControl wslClassifiercontrol, WhistleClassificationDataBlock pamDataBlock) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canExportLocalisations
(nilus.GranularityEnumType granularityType) See if it's possible for this block to export localisations.nilus.Detection
createDetection
(PamDataUnit dataUnit, TethysExportParams tethysExportParams, StreamExportParams streamExportParams) Create a Tethys Detection object from a PamDataUnit.
It's OK for this to return null if for some reason the unit shouldn't be stored.nilus.GranularityEnumType[]
Get a list of allowed granularity types for this outputMethods inherited from class tethys.pamdata.AutoTethysProvider
addUserDefined, getAlgorithm, getAlgorithmParameters, getDescription, getDetectionsMethod, getDetectionsName, getEffortKinds, getLocalisationAlgorithm, getLocalisationInfo, getLocalisationParameters, getPamDataBlock, getTethysControl, granularityOK, hasDetections, isAddFrequencyInfo, packAnnotation, roundDecimalPlaces, roundSignificantFigures, setAddFrequencyInfo, wantExportDialogCard
-
Constructor Details
-
WslClassTethysProvider
public WslClassTethysProvider(TethysControl tethysControl, WhistleClassifierControl wslClassifiercontrol, WhistleClassificationDataBlock pamDataBlock)
-
-
Method Details
-
createDetection
public nilus.Detection createDetection(PamDataUnit dataUnit, TethysExportParams tethysExportParams, StreamExportParams streamExportParams) Description copied from interface:TethysDataProvider
Create a Tethys Detection object from a PamDataUnit.
It's OK for this to return null if for some reason the unit shouldn't be stored.- Specified by:
createDetection
in interfaceTethysDataProvider
- Overrides:
createDetection
in classAutoTethysProvider
- Parameters:
dataUnit
- PAMGuard data unittethysExportParams
-streamExportParams
-- Returns:
- Detection Tethys Detection object.
-
getAllowedGranularities
public nilus.GranularityEnumType[] getAllowedGranularities()Description copied from interface:TethysDataProvider
Get a list of allowed granularity types for this output- Specified by:
getAllowedGranularities
in interfaceTethysDataProvider
- Overrides:
getAllowedGranularities
in classAutoTethysProvider
- Returns:
- list of granularities.
-
canExportLocalisations
public boolean canExportLocalisations(nilus.GranularityEnumType granularityType) Description copied from interface:TethysDataProvider
See if it's possible for this block to export localisations. This may depend on the selected granularity.- Specified by:
canExportLocalisations
in interfaceTethysDataProvider
- Overrides:
canExportLocalisations
in classAutoTethysProvider
- Parameters:
granularityType
-- Returns:
-