Package noiseOneBand
Class OneBandProcess
java.lang.Object
PamguardMVC.PamProcess
noiseOneBand.OneBandProcess
- All Implemented Interfaces:
PamObserver
,ProcessAnnotator
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
value to be considered Double.Nan as an int -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
calculateSEL
(OneBandDataUnit du, int selIntegrationTime) Calculate SEL and add it to a data unit.Find the absolute source of raw audio data if one existslong
void
newData
(PamObservable o, PamDataUnit pamDataUnit) void
pamStart()
Called for each process to tell it to start (may not be necessary for processes which are listening for data anyway).void
pamStop()
Stops the process.void
Called for each process before any of them receive the PamStart commandvoid
processNewBuoyData
(BuoyStatusDataUnit buoyStatus, PamDataUnit dataUnit) void
called for every process once the systemmodel has been created.Methods inherited from class PamguardMVC.PamProcess
absMillisecondsToSamples, absSamplesToMilliseconds, addData, addMultiPlexDataBlock, addOutputDataBlock, changedThreading, clearOldData, createAnnotations, destroyProcess, dumpBufferStatus, flushDataBlockBuffers, getAncestorDataBlock, getAnnotation, getChainPosition, getCompatibleDataUnits, getCpuPercent, getFrequencyRange, getLastSourceNotificationObject, getLastSourceNotificationType, getMuiltiplexDataBlock, getNumAnnotations, getNumMuiltiplexDataBlocks, getNumOutputDataBlocks, getObserverName, getObserverObject, getOfflineData, getOfflineData, getOutputDataBlock, getOutputDataBlocks, getPamControlledUnit, getParentDataBlock, getParentDataBlocks, getParentProcess, getProcessCheck, getProcessName, getRawSourceDataBlock, getSampleRate, getSourceDataBlock, getSourceProcess, hasOutputDatablock, isCanMultiThread, isExternalProcess, isMultiplex, makePamProcess, masterClockUpdate, noteNewSettings, notifyModelChanged, prepareProcessOK, receiveSourceNotification, relMillisecondsToSamples, relSamplesToMilliseconds, removeAllDataBlocks, removeAllMultiPlexDataBlocks, removeMultiPlexDataBlock, removeObservable, removeOutputDatablock, resetDataBlocks, saveViewerData, setCanMultiThread, setExternalProcess, setMultiplex, setParentDataBlock, setParentDataBlock, setProcessCheck, setProcessName, setSampleRate, toString, updateData
-
Field Details
-
nanValue
public static final int nanValuevalue to be considered Double.Nan as an int- See Also:
-
-
Constructor Details
-
OneBandProcess
-
-
Method Details
-
newData
- Overrides:
newData
in classPamProcess
-
getRequiredDataHistory
- Specified by:
getRequiredDataHistory
in interfacePamObserver
- Overrides:
getRequiredDataHistory
in classPamProcess
- Parameters:
arg
- optional argument from PamObservable- Returns:
- time in milliseconds required by data held in PamObservable
-
setupProcess
public void setupProcess()Description copied from class:PamProcess
called for every process once the systemmodel has been created. this is a good time to check out and find input data blocks and similar tasks.- Overrides:
setupProcess
in classPamProcess
-
prepareProcess
public void prepareProcess()Description copied from class:PamProcess
Called for each process before any of them receive the PamStart command- Overrides:
prepareProcess
in classPamProcess
-
pamStart
public void pamStart()Description copied from class:PamProcess
Called for each process to tell it to start (may not be necessary for processes which are listening for data anyway).- Specified by:
pamStart
in classPamProcess
-
pamStop
public void pamStop()Description copied from class:PamProcess
Stops the process.- Specified by:
pamStop
in classPamProcess
-
getRawSourceDataBlock
Description copied from class:PamProcess
Find the absolute source of raw audio data if one exists- Overrides:
getRawSourceDataBlock
in classPamProcess
- Returns:
- the sourceDataBlock
-
getWaveOutDataBlock
- Returns:
- the waveOutDataBlock
-
getMeasureDataBlock
- Returns:
- the measureDataBlock
-
processNewBuoyData
- Overrides:
processNewBuoyData
in classPamProcess
-
calculateSEL
Calculate SEL and add it to a data unit.- Parameters:
du
- most recent data unitselIntegrationTime
- SEL integration time in seconds.
-