Package likelihoodDetectionModule
Class TargetConfiguration
java.lang.Object
likelihoodDetectionModule.TargetConfiguration
- All Implemented Interfaces:
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:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
The State enumeration represents the current activity state of the TargetConfiguration, that is, whether is is currently requested to be active by the user (or, alternately inactive), or whether there is an error in one of the parameters of the configuration. -
Constructor Summary
ConstructorDescriptionTargetConfiguration
(AcquisitionSettings acquisitionSettings, int channelMap) Instantiates a new target configuration. -
Method Summary
Modifier and TypeMethodDescriptionvoid
calibrate
(AcquisitionSettings acquisitionSettings, int channelMap) Calibrate the TargetConfiguration against the supplied audio source parameters (the AcquisitionSettings) and the channel map.Gets the acquisition settings.Gets the algorithm.static String[]
Get the names of the available likelihood normalization algorithms.int
Gets the fFT parameters.double
Gets the frequency resolution.double[]
Gets the frequency resolution limits.Gets the guard bands.Gets the identifier.Get a set of data that describes all of the parameters in a classdouble
Gets the reference gain.double
Gets the seconds between detections.double[]
Gets the seconds between detections limits.Gets the signal bands.getState()
Gets the state of the TargetConfiguration.double
Gets the time resolution.double[]
Gets the time resolution limits.void
Sets the algorithm.void
setFrequencyResolution
(double frequencyResolution) Sets the frequency resolution.void
setGuardBands
(ArrayList<GuardBand> bands) Sets the guard bands.void
setIdentifier
(String identifier) Sets the identifier.void
setSecondsBetweenDetections
(double s) Sets the seconds between detections.void
setSignalBands
(ArrayList<SignalBand> signalBands) Sets the signal bands.void
Sets the state of the configuration.void
setTimeResolution
(double timeResolution) Sets the time resolution.
-
Constructor Details
-
TargetConfiguration
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 settingschannelMap
- the channel map
-
-
Method Details
-
getAlgorithmNames
Get the names of the available likelihood normalization algorithms.- Returns:
- the algorithm names
-
setState
Sets the state of the configuration.- Parameters:
s
- the new 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
public void setSecondsBetweenDetections(double s) Sets the seconds between detections.- Parameters:
s
- the new seconds between detections
-
getSecondsBetweenDetections
public double getSecondsBetweenDetections()Gets the seconds between detections.- Returns:
- the seconds between detections
-
getFFTParameters
Gets the fFT parameters.- Returns:
- the fFT parameters
-
getTimeResolutionLimits
public double[] getTimeResolutionLimits()Gets the time resolution limits.- Returns:
- the time resolution limits
-
getFrequencyResolutionLimits
public double[] getFrequencyResolutionLimits()Gets the frequency resolution limits.- Returns:
- the frequency resolution limits
-
getSecondsBetweenDetectionsLimits
public double[] getSecondsBetweenDetectionsLimits()Gets the seconds between detections limits.- Returns:
- the seconds between detections limits
-
getSignalBands
Gets the signal bands.- Returns:
- the signal bands
-
setSignalBands
Sets the signal bands.- Parameters:
signalBands
- the new signal bands
-
getGuardBands
Gets the guard bands.- Returns:
- the guard bands
-
setGuardBands
Sets the guard bands.- Parameters:
bands
- the new guard bands
-
getIdentifier
Gets the identifier.- Returns:
- the identifier
-
setIdentifier
Sets the identifier.- Parameters:
identifier
- the new identifier
-
getTimeResolution
public double getTimeResolution()Gets the time resolution.- Returns:
- the time resolution
-
setTimeResolution
public void setTimeResolution(double timeResolution) Sets the time resolution.- Parameters:
timeResolution
- the new time resolution
-
getFrequencyResolution
public double getFrequencyResolution()Gets the frequency resolution.- Returns:
- the frequency resolution
-
getReferenceGain
public double getReferenceGain()Gets the reference gain.- Returns:
- the reference gain
-
setFrequencyResolution
public void setFrequencyResolution(double frequencyResolution) Sets the frequency resolution.- Parameters:
frequencyResolution
- the new frequency resolution
-
getAlgorithm
Gets the algorithm.- Returns:
- the algorithm
-
setAlgorithm
Sets the algorithm.- Parameters:
algorithm
- the new algorithm
-
getAcquisitionSettings
Gets the acquisition settings.- Returns:
- the acquisition settings
-
getChannelMap
public int getChannelMap() -
calibrate
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 settingschannelMap
- the channel map
-
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.
-