Class TargetConfiguration

java.lang.Object
likelihoodDetectionModule.TargetConfiguration
All Implemented Interfaces:
Serializable, ManagedParameters

public class TargetConfiguration extends Object implements Serializable, ManagedParameters
The Class TargetConfiguration represents a single configuration for the likelihood detector, which can run multiple configurations simultaneously. A configuration is represented by a number of parameters that control the scope and accuracy of the area and the characteristics to be detected. Also there are one or more SignalBand definitions and zero or more GuardBand definitions.
See Also:
  • Constructor Details Link icon

    • TargetConfiguration Link icon

      public TargetConfiguration(AcquisitionSettings acquisitionSettings, int channelMap)
      Instantiates a new target configuration. The audio source settings and the channel map are required in order to automatically configure and limit various parameters for the detector.
      Parameters:
      acquisitionSettings - the acquisition settings
      channelMap - the channel map
  • Method Details Link icon

    • getAlgorithmNames Link icon

      public static String[] getAlgorithmNames()
      Get the names of the available likelihood normalization algorithms.
      Returns:
      the algorithm names
    • setState Link icon

      public void setState(TargetConfiguration.State s)
      Sets the state of the configuration.
      Parameters:
      s - the new state
    • getState Link icon

      public TargetConfiguration.State getState()
      Gets the state of the TargetConfiguration. This will check all of the parameters and bands for their errors states as well.
      Returns:
      the state
      See Also:
    • setSecondsBetweenDetections Link icon

      public void setSecondsBetweenDetections(double s)
      Sets the seconds between detections.
      Parameters:
      s - the new seconds between detections
    • getSecondsBetweenDetections Link icon

      public double getSecondsBetweenDetections()
      Gets the seconds between detections.
      Returns:
      the seconds between detections
    • getFFTParameters Link icon

      public LikelihoodFFTParameters getFFTParameters()
      Gets the fFT parameters.
      Returns:
      the fFT parameters
    • getTimeResolutionLimits Link icon

      public double[] getTimeResolutionLimits()
      Gets the time resolution limits.
      Returns:
      the time resolution limits
    • getFrequencyResolutionLimits Link icon

      public double[] getFrequencyResolutionLimits()
      Gets the frequency resolution limits.
      Returns:
      the frequency resolution limits
    • getSecondsBetweenDetectionsLimits Link icon

      public double[] getSecondsBetweenDetectionsLimits()
      Gets the seconds between detections limits.
      Returns:
      the seconds between detections limits
    • getSignalBands Link icon

      public ArrayList<SignalBand> getSignalBands()
      Gets the signal bands.
      Returns:
      the signal bands
    • setSignalBands Link icon

      public void setSignalBands(ArrayList<SignalBand> signalBands)
      Sets the signal bands.
      Parameters:
      signalBands - the new signal bands
    • getGuardBands Link icon

      public ArrayList<GuardBand> getGuardBands()
      Gets the guard bands.
      Returns:
      the guard bands
    • setGuardBands Link icon

      public void setGuardBands(ArrayList<GuardBand> bands)
      Sets the guard bands.
      Parameters:
      bands - the new guard bands
    • getIdentifier Link icon

      public String getIdentifier()
      Gets the identifier.
      Returns:
      the identifier
    • setIdentifier Link icon

      public void setIdentifier(String identifier)
      Sets the identifier.
      Parameters:
      identifier - the new identifier
    • getTimeResolution Link icon

      public double getTimeResolution()
      Gets the time resolution.
      Returns:
      the time resolution
    • setTimeResolution Link icon

      public void setTimeResolution(double timeResolution)
      Sets the time resolution.
      Parameters:
      timeResolution - the new time resolution
    • getFrequencyResolution Link icon

      public double getFrequencyResolution()
      Gets the frequency resolution.
      Returns:
      the frequency resolution
    • getReferenceGain Link icon

      public double getReferenceGain()
      Gets the reference gain.
      Returns:
      the reference gain
    • setFrequencyResolution Link icon

      public void setFrequencyResolution(double frequencyResolution)
      Sets the frequency resolution.
      Parameters:
      frequencyResolution - the new frequency resolution
    • getAlgorithm Link icon

      Gets the algorithm.
      Returns:
      the algorithm
    • setAlgorithm Link icon

      public void setAlgorithm(NormalizerProcess.NormalizerAlgorithm algorithm)
      Sets the algorithm.
      Parameters:
      algorithm - the new algorithm
    • getAcquisitionSettings Link icon

      public AcquisitionSettings getAcquisitionSettings()
      Gets the acquisition settings.
      Returns:
      the acquisition settings
    • getChannelMap Link icon

      public int getChannelMap()
    • calibrate Link icon

      public void calibrate(AcquisitionSettings acquisitionSettings, int channelMap)
      Calibrate the TargetConfiguration against the supplied audio source parameters (the AcquisitionSettings) and the channel map. This ensures that the parameter limits and other internal variables are correct for the source data, and it also checks the current settings for validity against the source parameters.
      Parameters:
      acquisitionSettings - the acquisition settings
      channelMap - the channel map
    • getParameterSet Link icon

      public PamParameterSet getParameterSet()
      Description copied from interface: ManagedParameters
      Get a set of data that describes all of the parameters in a class
      Specified by:
      getParameterSet in interface ManagedParameters
      Returns:
      description of the parameters in a class.