public class TargetConfiguration
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
TargetConfiguration.State
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 and Description |
---|
TargetConfiguration(AcquisitionSettings acquisitionSettings,
int channelMap)
Instantiates a new target configuration.
|
Modifier and Type | Method and Description |
---|---|
void |
calibrate(AcquisitionSettings acquisitionSettings,
int channelMap)
Calibrate the TargetConfiguration against the supplied audio source
parameters (the AcquisitionSettings) and the channel map.
|
AcquisitionSettings |
getAcquisitionSettings()
Gets the acquisition settings.
|
NormalizerProcess.NormalizerAlgorithm |
getAlgorithm()
Gets the algorithm.
|
static java.lang.String[] |
getAlgorithmNames()
Get the names of the available likelihood normalization algorithms.
|
int |
getChannelMap() |
LikelihoodFFTParameters |
getFFTParameters()
Gets the fFT parameters.
|
double |
getFrequencyResolution()
Gets the frequency resolution.
|
double[] |
getFrequencyResolutionLimits()
Gets the frequency resolution limits.
|
java.util.ArrayList<GuardBand> |
getGuardBands()
Gets the guard bands.
|
java.lang.String |
getIdentifier()
Gets the identifier.
|
double |
getReferenceGain()
Gets the reference gain.
|
double |
getSecondsBetweenDetections()
Gets the seconds between detections.
|
double[] |
getSecondsBetweenDetectionsLimits()
Gets the seconds between detections limits.
|
java.util.ArrayList<SignalBand> |
getSignalBands()
Gets the signal bands.
|
TargetConfiguration.State |
getState()
Gets the state of the TargetConfiguration.
|
double |
getTimeResolution()
Gets the time resolution.
|
double[] |
getTimeResolutionLimits()
Gets the time resolution limits.
|
void |
setAlgorithm(NormalizerProcess.NormalizerAlgorithm algorithm)
Sets the algorithm.
|
void |
setFrequencyResolution(double frequencyResolution)
Sets the frequency resolution.
|
void |
setGuardBands(java.util.ArrayList<GuardBand> bands)
Sets the guard bands.
|
void |
setIdentifier(java.lang.String identifier)
Sets the identifier.
|
void |
setSecondsBetweenDetections(double s)
Sets the seconds between detections.
|
void |
setSignalBands(java.util.ArrayList<SignalBand> signalBands)
Sets the signal bands.
|
void |
setState(TargetConfiguration.State s)
Sets the state of the configuration.
|
void |
setTimeResolution(double timeResolution)
Sets the time resolution.
|
public TargetConfiguration(AcquisitionSettings acquisitionSettings, int channelMap)
acquisitionSettings
- the acquisition settingschannelMap
- the channel mappublic static java.lang.String[] getAlgorithmNames()
public void setState(TargetConfiguration.State s)
s
- the new statepublic TargetConfiguration.State getState()
TargetConfiguration.State
public void setSecondsBetweenDetections(double s)
s
- the new seconds between detectionspublic double getSecondsBetweenDetections()
public LikelihoodFFTParameters getFFTParameters()
public double[] getTimeResolutionLimits()
public double[] getFrequencyResolutionLimits()
public double[] getSecondsBetweenDetectionsLimits()
public java.util.ArrayList<SignalBand> getSignalBands()
public void setSignalBands(java.util.ArrayList<SignalBand> signalBands)
signalBands
- the new signal bandspublic java.util.ArrayList<GuardBand> getGuardBands()
public void setGuardBands(java.util.ArrayList<GuardBand> bands)
bands
- the new guard bandspublic java.lang.String getIdentifier()
public void setIdentifier(java.lang.String identifier)
identifier
- the new identifierpublic double getTimeResolution()
public void setTimeResolution(double timeResolution)
timeResolution
- the new time resolutionpublic double getFrequencyResolution()
public double getReferenceGain()
public void setFrequencyResolution(double frequencyResolution)
frequencyResolution
- the new frequency resolutionpublic NormalizerProcess.NormalizerAlgorithm getAlgorithm()
public void setAlgorithm(NormalizerProcess.NormalizerAlgorithm algorithm)
algorithm
- the new algorithmpublic AcquisitionSettings getAcquisitionSettings()
public int getChannelMap()
public void calibrate(AcquisitionSettings acquisitionSettings, int channelMap)
acquisitionSettings
- the acquisition settingschannelMap
- the channel map