Package difar
Class DifarParameters
java.lang.Object
difar.DifarParameters
- All Implemented Interfaces:
 Serializable,Cloneable,ManagedParameters
- See Also:
 
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enumclassstatic enumstatic enumclass - 
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanAuto scale line length depending on rangebooleanbooleanSpectrogram marks will be assigned the selected classification in sidebarbooleanwhether to autoprocess vessel clips(now the only ones that can be)booleanwhen auto saving the difar result either the angle can be saved or the angle and range can be saved if it has rangebooleanfloattime afterwhich item has been sitting in difargram to autosave if no user interactionfloatstatic final intstatic final intChoices for calibration dialog when user right clicks and / or new data arrive.intstatic final StringbooleanbooleandoubleDistance travelled in surface duct, h0: 10*log(range) - 10*log(h0);static final Stringstatic final Stringdoublerange in meters to dislpay on mapStores paramaters to correct the frequency response for DIFAR buoysvertical divider - possible between difargram and spectrogrambooleanused when the DIFARcontainers were joined - no longerintkeep rawdata in rawdatablock for this amount of time may make this display dependantbooleandoubleintbooleanSpectrogram marks will generate clips from all channels instead of the one clicked ondoubleNominal source level used to determine line lengths.doubleNominal spreading, alpha: PL = alpha*Log(range);intnot user configurable for nowintnatural lifetime for the processed data datablockstatic final intThe 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 intThe 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 intPropagation loss is not estimated and the bearing lines for detections are drawn with a fixed, user-specified lengthintModel to use for determining the length of a bearing lineintnatural 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 withindoubleseconds 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 longbooleanshow detection limits on difargram - edited on right clickbooleankey on difargram - edited on right clickbooleansummary line - addition of amplitude/angle withing frequency bands on difargram - edited on right clickbooleanspecies to process a difarclip with.booleanlongcheck 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 detectorbooleanbooleanIf true use the average the energy across the classification frequency band in the difarGram, before picking the peak.intintintboolean - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionbooleanaddSpeciesParams(DifarParameters.SpeciesParams sp, boolean override) Create a new set of audio clip parameters for a given speciesbooleanaddTrackedGroup(String listItem) booleanAdd a new trigger Parameters to the list.voidClear 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.doubleintGet a set of data that describes all of the parameters in a classgetSpeciesList(DifarControl difarControl) getTriggerParams(int i) Get a trigger setting objectbooleanvoidremoveTrackedGroup(String listItem) voidvoidsetFavSpecies(LookupItem[] favSpecies) voidsetSingleClickSave(boolean singleClickSave) voidsetSpeciesList(LookupList speciesList) voidsetSpeciesParams(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:ManagedParametersGet a set of data that describes all of the parameters in a class- Specified by:
 getParameterSetin interfaceManagedParameters- Returns:
 - description of the parameters in a class.
 
 
 -