|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectPamController.PamControlledUnit
noiseMonitor.NoiseControl
public class NoiseControl
Extract noise statistics from acoustic data.
Measurements will be written out to a database at regular intervals (about once a minute), however, not every sample of incoming data will be used, but a sub sample from within the measuremetnInterval.
For each measure, the output will include the mean, and the median and some other statistics from the distribution of noise measures.
| Nested Class Summary | |
|---|---|
(package private) class |
NoiseControl.DisplayOptions
|
(package private) class |
NoiseControl.SettingsMenu
|
| Field Summary | |
|---|---|
java.lang.String[] |
measureNames
|
private NoiseProcess |
noiseProcess
|
protected NoiseSettings |
noiseSettings
|
private NoiseTabPanel |
noiseTabPanel
|
static double[] |
THIRDOCTAVES
Centre frequencies for third octave bands. |
| Fields inherited from class PamController.PamControlledUnit |
|---|
isViewer |
| Constructor Summary | |
|---|---|
NoiseControl(java.lang.String unitName)
|
|
| Method Summary | |
|---|---|
java.lang.String |
createDBColumnName(int iBand,
int iMeasure)
|
javax.swing.JMenuItem |
createDetectionMenu(java.awt.Frame parentFrame)
Create a JMenu object containing MenuItems associated with PamProcesses |
javax.swing.JMenuItem |
createDisplayMenu(java.awt.Frame parentFrame)
Create a JMenu object containing MenuItems associated with the view |
protected double[][] |
createThirdOctaveBands(double fmin,
double fmax)
Work out the frequency edges of third octave bands between fmin and fmax. |
void |
displayOptions(java.awt.Frame parentFrame)
|
int |
getChannelMap()
|
private double |
getNextCent(int index,
double multiplier)
Get next third octave centre |
NoiseProcess |
getNoiseProcess()
|
private double |
getPrevCent(int index,
double multiplier)
get rpevioud third octave centre |
java.io.Serializable |
getSettingsReference()
|
long |
getSettingsVersion()
|
PamTabPanel |
getTabPanel()
Gets a reference to a panel to be added to a view |
protected void |
noiseSettings(java.awt.Frame parentFrame)
|
boolean |
restoreSettings(PamControlledUnitSettings pamControlledUnitSettings)
|
private void |
times10(double[] a)
multiple an array by 10 (used to multiply up third oct edges) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface PamController.PamSettings |
|---|
getUnitName, getUnitType |
| Field Detail |
|---|
protected NoiseSettings noiseSettings
private NoiseProcess noiseProcess
private NoiseTabPanel noiseTabPanel
public static final double[] THIRDOCTAVES
public java.lang.String[] measureNames
| Constructor Detail |
|---|
public NoiseControl(java.lang.String unitName)
| Method Detail |
|---|
public javax.swing.JMenuItem createDetectionMenu(java.awt.Frame parentFrame)
PamControlledUnit
createDetectionMenu in class PamControlledUnitparentFrame - The owner frame of the menu
Note that if multiple views are to use the same menu, then they should each create a new menu (by setting Create to true) the first time they call this method.
protected double[][] createThirdOctaveBands(double fmin,
double fmax)
fmin - fmax -
private double getNextCent(int index,
double multiplier)
index - multiplier -
private double getPrevCent(int index,
double multiplier)
index - multiplier -
private void times10(double[] a)
a - protected void noiseSettings(java.awt.Frame parentFrame)
public javax.swing.JMenuItem createDisplayMenu(java.awt.Frame parentFrame)
PamControlledUnit
createDisplayMenu in class PamControlledUnitNote that if multiple views are to use the same menu, then they should each create a new menu (by setting Create to true) the first time they call this method.
public void displayOptions(java.awt.Frame parentFrame)
public java.io.Serializable getSettingsReference()
getSettingsReference in interface PamSettingspublic long getSettingsVersion()
getSettingsVersion in interface PamSettingspublic boolean restoreSettings(PamControlledUnitSettings pamControlledUnitSettings)
restoreSettings in interface PamSettings
public java.lang.String createDBColumnName(int iBand,
int iMeasure)
public PamTabPanel getTabPanel()
PamControlledUnit
getTabPanel in class PamControlledUnitPamTabPanel,
PamSidePanelpublic int getChannelMap()
public NoiseProcess getNoiseProcess()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||