Package difar
Class DifarParameters
java.lang.Object
difar.DifarParameters
- All Implemented Interfaces:
Serializable
,Cloneable
,ManagedParameters
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
static enum
class
static enum
static enum
class
-
Field Summary
Modifier and TypeFieldDescriptionboolean
Auto scale line length depending on rangeboolean
boolean
Spectrogram marks will be assigned the selected classification in sidebarboolean
whether to autoprocess vessel clips(now the only ones that can be)boolean
when auto saving the difar result either the angle can be saved or the angle and range can be saved if it has rangeboolean
float
time afterwhich item has been sitting in difargram to autosave if no user interactionfloat
static final int
static final int
Choices for calibration dialog when user right clicks and / or new data arrive.int
static final String
boolean
boolean
double
Distance travelled in surface duct, h0: 10*log(range) - 10*log(h0);static final String
static final String
double
range in meters to dislpay on mapStores paramaters to correct the frequency response for DIFAR buoysvertical divider - possible between difargram and spectrogramboolean
used when the DIFARcontainers were joined - no longerint
keep rawdata in rawdatablock for this amount of time may make this display dependantboolean
double
int
boolean
Spectrogram marks will generate clips from all channels instead of the one clicked ondouble
Nominal source level used to determine line lengths.double
Nominal spreading, alpha: PL = alpha*Log(range);int
not user configurable for nowint
natural lifetime for the processed data datablockstatic final int
The length of bearing lines is estimated using measured Received levels, RL, and user specified Source Levels (SL) and surface duct distance, h0 such that RL = SL-PL Propagation loss, PL, is estimated as: PL = 10*log(range) - 10*log(h0);static final int
The length of bearing lines is estimated using measured Received levels, RL, and user specified Source Levels (SL) and attentuation coefficient, alpha such that RL = SL-PL Propagation loss, PL, is estimated as PL = alpha*log(range)static final int
Propagation loss is not estimated and the bearing lines for detections are drawn with a fixed, user-specified lengthint
Model to use for determining the length of a bearing lineint
natural lifetime for the queued data datablock-note there is also some control over this withing the clip generator history section of the hiding panelname of unit to get raw data from including the frequency bands in which the multiplexed signals are withindouble
seconds to prepend to each clip to allow for signal locking of the demux algorithmAutomatically assign user-defined DIFAR classification when clicking on the Spectrogramstatic final long
boolean
show detection limits on difargram - edited on right clickboolean
key on difargram - edited on right clickboolean
summary line - addition of amplitude/angle withing frequency bands on difargram - edited on right clickboolean
species to process a difarclip with.boolean
long
check this compared with map show data time 30 min?name of the detector module which can trigger difar clips to be made - eg whistle and moan detector currently limited to one detectorboolean
boolean
If true use the average the energy across the classification frequency band in the difarGram, before picking the peak.int
int
int
boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addSpeciesParams
(DifarParameters.SpeciesParams sp, boolean override) Create a new set of audio clip parameters for a given speciesboolean
addTrackedGroup
(String listItem) boolean
Add a new trigger Parameters to the list.void
Clear all trigger parameters.clone()
Use the function below to assign default values to newly added parameters, since they will be null when loading older versions of the settings file.findSpeciesParams
(DifarDataUnit difarDataUnit) findSpeciesParams
(LookupItem lutItem) findSpeciesParams
(String lookupItemName) findTriggerParams
(String dataName) Find the trigger parameters for a specific data stream.The default Frequency Response Filter used for correction/calibration of the frequency response of military sonobuoys.double
int
Get a set of data that describes all of the parameters in a classgetSpeciesList
(DifarControl difarControl) getTriggerParams
(int i) Get a trigger setting objectboolean
void
removeTrackedGroup
(String listItem) void
void
setFavSpecies
(LookupItem[] favSpecies) void
setSingleClickSave
(boolean singleClickSave) void
setSpeciesList
(LookupList speciesList) void
setSpeciesParams
(ArrayList<DifarParameters.SpeciesParams> speciesParams)
-
Field Details
-
serialVersionUID
public static final long serialVersionUID- See Also:
-
keepRawDataTime
public int keepRawDataTimekeep rawdata in rawdatablock for this amount of time may make this display dependant -
rawDataName
name of unit to get raw data from including the frequency bands in which the multiplexed signals are within -
queuedDataKeepTime
public int queuedDataKeepTimenatural lifetime for the queued data datablock-note there is also some control over this withing the clip generator history section of the hiding panel -
processedDataKeepTime
public int processedDataKeepTimenatural lifetime for the processed data datablock -
clearQueueAtStart
public boolean clearQueueAtStart -
clearProcessedDataAtStart
public boolean clearProcessedDataAtStart -
secondsToPreceed
public double secondsToPreceedseconds to prepend to each clip to allow for signal locking of the demux algorithm -
triggerParams
name of the detector module which can trigger difar clips to be made - eg whistle and moan detector currently limited to one detector -
CALIBRATION_USE_MODE
public static final int CALIBRATION_USE_MODEChoices for calibration dialog when user right clicks and / or new data arrive.- See Also:
-
CALIBRATION_USE_MEAN
public static final int CALIBRATION_USE_MEAN- See Also:
-
calibrationChoice
public int calibrationChoice -
difarFreqResponseFilterParams
Stores paramaters to correct the frequency response for DIFAR buoys -
PROPLOSS_NONE
public static final int PROPLOSS_NONEPropagation loss is not estimated and the bearing lines for detections are drawn with a fixed, user-specified length- See Also:
-
PROPLOSS_GEOMETRIC
public static final int PROPLOSS_GEOMETRICThe length of bearing lines is estimated using measured Received levels, RL, and user specified Source Levels (SL) and attentuation coefficient, alpha such that RL = SL-PL Propagation loss, PL, is estimated as PL = alpha*log(range)- See Also:
-
PROPLOSS_CYLINDRICAL
public static final int PROPLOSS_CYLINDRICALThe length of bearing lines is estimated using measured Received levels, RL, and user specified Source Levels (SL) and surface duct distance, h0 such that RL = SL-PL Propagation loss, PL, is estimated as: PL = 10*log(range) - 10*log(h0);- See Also:
-
difarGramDividerPos
vertical divider - possible between difargram and spectrogram -
horizontalDividerPos
used when the DIFARcontainers were joined - no longer -
selectedClassification
Automatically assign user-defined DIFAR classification when clicking on the Spectrogram -
multiChannelClips
public boolean multiChannelClipsSpectrogram marks will generate clips from all channels instead of the one clicked on -
assignClassification
public boolean assignClassificationSpectrogram marks will be assigned the selected classification in sidebar -
vesselClipLength
public int vesselClipLength -
vesselClipSeparation
public int vesselClipSeparation -
vesselClipNumber
public int vesselClipNumber -
hideVesselClips
public boolean hideVesselClips -
showDifarGramKey
public boolean showDifarGramKeykey on difargram - edited on right click -
showDifarGramSummary
public boolean showDifarGramSummarysummary line - addition of amplitude/angle withing frequency bands on difargram - edited on right click -
showDifarGramFreqLimits
public boolean showDifarGramFreqLimitsshow detection limits on difargram - edited on right click -
demuxType
-
Default
- See Also:
-
CalibrationClip
- See Also:
-
DefaultGroup
- See Also:
-
autoSaveTime
public float autoSaveTimetime afterwhich item has been sitting in difargram to autosave if no user interaction -
autoSaveDResult
public boolean autoSaveDResult -
autoSaveAngleOnly
public boolean autoSaveAngleOnlywhen auto saving the difar result either the angle can be saved or the angle and range can be saved if it has range -
Species
species to process a difarclip with. if null autoprocess dieabled -
firstOrder
-
secondOrder
-
amplitudeScaledLineLength
public boolean amplitudeScaledLineLengthAuto scale line length depending on range -
propLossModel
public int propLossModelModel to use for determining the length of a bearing line -
nominalSourceLevel
public double nominalSourceLevelNominal source level used to determine line lengths. -
nominalSpreading
public double nominalSpreadingNominal spreading, alpha: PL = alpha*Log(range); -
cylindricalStartDistance
public double cylindricalStartDistanceDistance travelled in surface duct, h0: 10*log(range) - 10*log(h0); -
defaultLength
public double defaultLengthrange in meters to dislpay on map -
timeScaledOpacity
public boolean timeScaledOpacity -
timeToFade
public long timeToFadecheck this compared with map show data time 30 min? -
minimumOpacity
public int minimumOpacity -
showVesselBearings
public boolean showVesselBearings -
numberOfFavouriteWhales
public int numberOfFavouriteWhalesnot user configurable for now -
autoProcess
public boolean autoProcesswhether to autoprocess vessel clips(now the only ones that can be) -
zoomDifarFrequency
public boolean zoomDifarFrequency -
useSummaryLine
public boolean useSummaryLineIf true use the average the energy across the classification frequency band in the difarGram, before picking the peak. Otherwise use the absolute maximum -
saveKey
-
deleteKey
-
saveWithoutCrossKey
-
nextClassKey
-
prevClassKey
-
calibrationGpsSource
-
loadViewerClips
public boolean loadViewerClips -
useMaxSourceLevel
public boolean useMaxSourceLevel -
maxSourceLevel
public double maxSourceLevel -
bearingLineWidth
public float bearingLineWidth -
amplitudeScaledOpacity
public boolean amplitudeScaledOpacity
-
-
Constructor Details
-
DifarParameters
public DifarParameters()
-
-
Method Details
-
getSpeciesDefaults
-
getDefaultFreqResponseFilter
The default Frequency Response Filter used for correction/calibration of the frequency response of military sonobuoys. This default frequency response is flat from 5 Hz to 48 kHz, but most sonobuoys have a non-flat frequency response, so this filter can be adjusted (via the DIFAR parameters Dialog) measurement of absolute sound pressure levels is required.- Returns:
-
getGroupDefaults
-
getFavSpecies
- Returns:
- the favSpecies which will be shown next to each clip
-
setFavSpecies
- Parameters:
favSpecies
- the favSpecies to set
-
clone
Use the function below to assign default values to newly added parameters, since they will be null when loading older versions of the settings file. -
getSpeciesList
-
setSpeciesList
-
restoreDefaultSpeciesParams
public void restoreDefaultSpeciesParams() -
getDefaultRange
public double getDefaultRange() -
isSingleClickSave
public boolean isSingleClickSave()- Returns:
- the singleClickSave
-
setSingleClickSave
public void setSingleClickSave(boolean singleClickSave) - Parameters:
singleClickSave
- the singleClickSave to set
-
getSpeciesParams
- Returns:
- the speciesParams
-
findSpeciesParams
-
findSpeciesParams
-
findSpeciesParams
-
addSpeciesParams
Create a new set of audio clip parameters for a given species- Parameters:
sp
- - Audio parameters (e.g. Sample rate, FFT Lenght, Frequency Limits etc.)override
- - Set to true to overwrite existing parameters- Returns:
-
setSpeciesParams
- Parameters:
speciesParams
- the speciesParams to set
-
getNumTriggersEnabled
public int getNumTriggersEnabled()- Returns:
- the number of triggers that are enabled by the DIFAR module.
-
getTriggerParams
Get a trigger setting object- Parameters:
i
- number of the trigger- Returns:
- the trigger parameters
-
findTriggerParams
Find the trigger parameters for a specific data stream.- Parameters:
dataName
- data name for the data block.- Returns:
- Trigger parameters, or null if none active.
-
clearAllTriggerParams
public void clearAllTriggerParams()Clear all trigger parameters. -
addTriggerParams
Add a new trigger Parameters to the list.- Parameters:
tP
-
-
addTrackedGroup
-
removeTrackedGroup
-
getTrackedGroupList
-
getDifarFreqResponseFilterParams
-
getParameterSet
Description copied from interface:ManagedParameters
Get a set of data that describes all of the parameters in a class- Specified by:
getParameterSet
in interfaceManagedParameters
- Returns:
- description of the parameters in a class.
-