Package whistlesAndMoans
Class WhistleToneParameters
java.lang.Object
PamView.GroupedSourceParameters
whistlesAndMoans.WhistleToneParameters
- All Implemented Interfaces:
 Serializable,Cloneable,ManagedParameters
public class WhistleToneParameters
extends GroupedSourceParameters
implements Serializable, Cloneable, ManagedParameters
- See Also:
 
- 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intintbooleanKeep short stubs sticking out of main contour.intintintstatic final longstatic final intstatic final intPolicy for showing short whistles on the spectrogram.static final intintLength of short whistles.intbooleanShow the full contour outline - not just the peak linebooleanOn long spec displays stretch the contour so that the start time is correct, but it then uses 1 pixel per fft bin. - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionclone()doubleInterval in seconds between background noise measurementsintdoublegetMaxFrequency(double sampleRate) doubleNote that all the fields have getters, so even though they are private they will still be included in the output so we don't need to explicitly add them herevoidsetBackgroundInterval(double backgroundInterval) Interval in seconds between background noise measurementsvoidsetConnectType(int connectType) voidsetDataSource(String dataSource) voidsetMaxFrequency(double maxFrequency) voidsetMinFrequency(double minFrequency) voidsetSpecNoiseSettings(SpectrogramNoiseSettings specNoiseSettings) Methods inherited from class PamView.GroupedSourceParameters
countChannelGroups, getChannelBitmap, getChannelGroups, getChanOrSeqBitmap, getDataSource, getGroupChannels, getGroupingType, getGroupMap, mayHaveBearings, mayHaveRange, setChannelGroups, setChanOrSeqBitmap, setGroupingType 
- 
Field Details
- 
serialVersionUID
public static final long serialVersionUID- See Also:
 
 - 
FRAGMENT_NONE
public static final int FRAGMENT_NONE- See Also:
 
 - 
FRAGMENT_DISCARD
public static final int FRAGMENT_DISCARD- See Also:
 
 - 
FRAGMENT_FRAGMENT
public static final int FRAGMENT_FRAGMENT- See Also:
 
 - 
FRAGMENT_RELINK
public static final int FRAGMENT_RELINK- See Also:
 
 - 
SHORT_SHOWALL
public static final int SHORT_SHOWALLPolicy for showing short whistles on the spectrogram.- See Also:
 
 - 
SHORT_HIDEALL
public static final int SHORT_HIDEALL- See Also:
 
 - 
SHORT_SHOWGREY
public static final int SHORT_SHOWGREY- See Also:
 
 - 
minPixels
public int minPixels - 
minLength
public int minLength - 
maxCrossLength
public int maxCrossLength - 
fragmentationMethod
public int fragmentationMethod - 
showContourOutline
public boolean showContourOutlineShow the full contour outline - not just the peak line - 
keepShapeStubs
public boolean keepShapeStubsKeep short stubs sticking out of main contour. Using -ve of default so that old parameter sets go to default. Default is now to remove them. May 2021 - 
stretchContours
public boolean stretchContoursOn long spec displays stretch the contour so that the start time is correct, but it then uses 1 pixel per fft bin. - 
shortLength
public int shortLengthLength of short whistles. - 
shortShowPolicy
public int shortShowPolicy 
 - 
 - 
Constructor Details
- 
WhistleToneParameters
public WhistleToneParameters() 
 - 
 - 
Method Details
- 
setDataSource
- Overrides:
 setDataSourcein classGroupedSourceParameters- Parameters:
 dataSource- the dataSource to set
 - 
getConnectType
public int getConnectType()- Returns:
 - the connectType
 
 - 
setConnectType
public void setConnectType(int connectType) - Parameters:
 connectType- the connectType to set
 - 
getMinFrequency
public double getMinFrequency()- Returns:
 - the minFrequency
 
 - 
setMinFrequency
public void setMinFrequency(double minFrequency) - Parameters:
 minFrequency- the minFrequency to set
 - 
getMaxFrequency
public double getMaxFrequency(double sampleRate) - Returns:
 - the maxFrequency
 
 - 
setMaxFrequency
public void setMaxFrequency(double maxFrequency) - Parameters:
 maxFrequency- the maxFrequency to set
 - 
getSpecNoiseSettings
- Returns:
 - the specNoiseSettings
 
 - 
setSpecNoiseSettings
- Parameters:
 specNoiseSettings- the specNoiseSettings to set
 - 
getParameterSet
Description copied from class:GroupedSourceParametersNote that all the fields have getters, so even though they are private they will still be included in the output so we don't need to explicitly add them here- Specified by:
 getParameterSetin interfaceManagedParameters- Overrides:
 getParameterSetin classGroupedSourceParameters- Returns:
 - description of the parameters in a class.
 
 - 
clone
- Overrides:
 clonein classGroupedSourceParameters
 - 
getBackgroundInterval
public double getBackgroundInterval()Interval in seconds between background noise measurements- Returns:
 - the backgroundInterval
 
 - 
setBackgroundInterval
public void setBackgroundInterval(double backgroundInterval) Interval in seconds between background noise measurements- Parameters:
 backgroundInterval- the backgroundInterval to set
 
 -