noiseMonitor
Class NoiseSettings

java.lang.Object
  extended by noiseMonitor.NoiseSettings
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class NoiseSettings
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable

See Also:
Serialized Form

Field Summary
 boolean autoScale
           
 int channelBitmap
           
 java.lang.String dataSource
           
(package private)  long displayLengthSeconds
           
private  double highestFrequency
           
(package private)  double levelMax
           
(package private)  double levelMin
           
private  double lowestFrequency
           
private  java.util.ArrayList<NoiseMeasurementBand> measurementBands
           
 int measurementIntervalSeconds
          Interval between measurements in seconds
 int nMeasures
          Number of measures in measurementIntervalSeconds These will be placed at random within the interval
(package private)  boolean[] selectedChannels
           
(package private)  boolean[] selectedData
           
(package private)  boolean[] selectedStats
           
static long serialVersionUID
           
 boolean showGrid
           
 boolean useAll
          Tells PAMGUARD to use every single FFT data coming in.
 
Constructor Summary
NoiseSettings()
           
 
Method Summary
 void addNoiseMeasurementBand(int listPos, NoiseMeasurementBand noiseMeasurementBand)
          Add a noise measurement band at a specific place in the list.
 void addNoiseMeasurementBand(NoiseMeasurementBand noiseMeasurementBand)
          Add a noise measurement band to the end of the list.
 NoiseSettings clone()
           
 java.util.ListIterator<NoiseMeasurementBand> getBandIterator()
           
 double getHighestFrequency()
          Get the highest frequency used by any band
 double getHighestFrequency10()
          Get the highest frequency used by any band rounded up to nearest factor of 10
 double getLowestFrequency()
          Get the lowest frequency used by any band.
 double getLowestFrequency10()
          Get the lowest frequency used by any band.
 NoiseMeasurementBand getMeasurementBand(int i)
           
 int getNumMeasurementBands()
           
 void removeMeasurementBand(int iBand)
          Remove a noise measurement band from the list
private  void sortLowHigh()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values

dataSource

public java.lang.String dataSource

channelBitmap

public int channelBitmap

measurementIntervalSeconds

public int measurementIntervalSeconds
Interval between measurements in seconds


nMeasures

public int nMeasures
Number of measures in measurementIntervalSeconds These will be placed at random within the interval


useAll

public boolean useAll
Tells PAMGUARD to use every single FFT data coming in.

Overrides nMeasures.


measurementBands

private java.util.ArrayList<NoiseMeasurementBand> measurementBands

displayLengthSeconds

long displayLengthSeconds

levelMin

double levelMin

levelMax

double levelMax

selectedChannels

boolean[] selectedChannels

selectedStats

boolean[] selectedStats

selectedData

boolean[] selectedData

autoScale

public boolean autoScale

showGrid

public boolean showGrid

lowestFrequency

private double lowestFrequency

highestFrequency

private double highestFrequency
Constructor Detail

NoiseSettings

public NoiseSettings()
Method Detail

getBandIterator

public java.util.ListIterator<NoiseMeasurementBand> getBandIterator()

getNumMeasurementBands

public int getNumMeasurementBands()

getMeasurementBand

public NoiseMeasurementBand getMeasurementBand(int i)

addNoiseMeasurementBand

public void addNoiseMeasurementBand(NoiseMeasurementBand noiseMeasurementBand)
Add a noise measurement band to the end of the list.

Parameters:
noiseMeasurementBand - noise band data

addNoiseMeasurementBand

public void addNoiseMeasurementBand(int listPos,
                                    NoiseMeasurementBand noiseMeasurementBand)
Add a noise measurement band at a specific place in the list.

Parameters:
listPos - position in list
noiseMeasurementBand - noise band data

removeMeasurementBand

public void removeMeasurementBand(int iBand)
Remove a noise measurement band from the list

Parameters:
iBand - band index

sortLowHigh

private void sortLowHigh()

getLowestFrequency

public double getLowestFrequency()
Get the lowest frequency used by any band.


getHighestFrequency

public double getHighestFrequency()
Get the highest frequency used by any band

Returns:

getLowestFrequency10

public double getLowestFrequency10()
Get the lowest frequency used by any band. rounded down to nearest factor of 10


getHighestFrequency10

public double getHighestFrequency10()
Get the highest frequency used by any band rounded up to nearest factor of 10

Returns:

clone

public NoiseSettings clone()
Overrides:
clone in class java.lang.Object