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 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:
    • SHORT_SHOWALL

      public static final int SHORT_SHOWALL
      Policy 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 showContourOutline
      Show the full contour outline - not just the peak line
    • keepShapeStubs

      public boolean keepShapeStubs
      Keep 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 stretchContours
      On 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 shortLength
      Length of short whistles.
    • shortShowPolicy

      public int shortShowPolicy
  • Constructor Details

    • WhistleToneParameters

      public WhistleToneParameters()
  • Method Details

    • setDataSource

      public void setDataSource(String dataSource)
      Overrides:
      setDataSource in class GroupedSourceParameters
      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

      public SpectrogramNoiseSettings getSpecNoiseSettings()
      Returns:
      the specNoiseSettings
    • setSpecNoiseSettings

      public void setSpecNoiseSettings(SpectrogramNoiseSettings specNoiseSettings)
      Parameters:
      specNoiseSettings - the specNoiseSettings to set
    • getParameterSet

      public PamParameterSet getParameterSet()
      Description copied from class: GroupedSourceParameters
      Note 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:
      getParameterSet in interface ManagedParameters
      Overrides:
      getParameterSet in class GroupedSourceParameters
      Returns:
      description of the parameters in a class.
    • clone

      public WhistleToneParameters clone()
      Overrides:
      clone in class GroupedSourceParameters
    • 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