public class SpectrogramNoiseProcess extends PamProcess
Constructor and Description |
---|
SpectrogramNoiseProcess(PamControlledUnit pamControlledUnit) |
Modifier and Type | Method and Description |
---|---|
boolean |
fillXMLParameters(org.w3c.dom.Document doc,
org.w3c.dom.Element paramsEl)
Add PamProcess specific XML data.
|
ProcessAnnotation |
getAnnotation(PamDataBlock pamDataBlock,
int annotation)
Get an Annotation
|
java.util.ArrayList<SpecNoiseMethod> |
getMethods() |
SpectrogramNoiseSettings |
getNoiseSettings() |
int |
getNumAnnotations(PamDataBlock pamDataBlock) |
int |
getOfflineData(PamDataBlock dataBlock,
PamObserver endUser,
long startMillis,
long endMillis,
RequestCancellationObject cancellationObject)
Request offline data.
|
FFTDataBlock |
getOutputDataBlock() |
void |
makeAnnotations() |
void |
newData(PamObservable o,
PamDataUnit arg) |
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 |
prepareProcess()
Called for each process before any of them receive the PamStart command
|
void |
setNoiseSettings(SpectrogramNoiseSettings noiseSettings) |
void |
setParentDataBlock(FFTDataBlock fftDataBlock) |
void |
setupProcess()
called for every process once the systemmodel has been created.
|
absMillisecondsToSamples, absSamplesToMilliseconds, addOutputDataBlock, changedThreading, clearOldData, createAnnotations, destroyProcess, fillXMLElement, flushDataBlockBuffers, getAncestorDataBlock, getChainPosition, getCpuPercent, getNumOutputDataBlocks, getObserverName, getObserverObject, getOutputDataBlock, getOutputDataBlocks, getPamControlledUnit, getParentDataBlock, getParentProcess, getProcessName, getRawSourceDataBlock, getRequiredDataHistory, getSampleRate, getSourceDataBlock, getSourceProcess, isCanMultiThread, makePamProcess, masterClockUpdate, noteNewSettings, notifyModelChanged, processNewBuoyData, relMillisecondsToSamples, relSamplesToMilliseconds, removeAllDataBlocks, removeObservable, removeOutputDatablock, resetDataBlocks, saveViewerData, setCanMultiThread, setParentDataBlock, setParentDataBlock, setProcessName, setSampleRate, toString, update, updateData
public SpectrogramNoiseProcess(PamControlledUnit pamControlledUnit)
public void setupProcess()
PamProcess
setupProcess
in class PamProcess
public void newData(PamObservable o, PamDataUnit arg)
newData
in class PamProcess
public void prepareProcess()
PamProcess
prepareProcess
in class PamProcess
public SpectrogramNoiseSettings getNoiseSettings()
public void setNoiseSettings(SpectrogramNoiseSettings noiseSettings)
public java.util.ArrayList<SpecNoiseMethod> getMethods()
public void setParentDataBlock(FFTDataBlock fftDataBlock)
public void pamStart()
PamProcess
pamStart
in class PamProcess
public void pamStop()
PamProcess
pamStop
in class PamProcess
public ProcessAnnotation getAnnotation(PamDataBlock pamDataBlock, int annotation)
ProcessAnnotator
getAnnotation
in interface ProcessAnnotator
getAnnotation
in class PamProcess
pamDataBlock
- Annotated datablockannotation
- annotation numberpublic int getNumAnnotations(PamDataBlock pamDataBlock)
getNumAnnotations
in interface ProcessAnnotator
getNumAnnotations
in class PamProcess
pamDataBlock
- Annotated datablockpublic void makeAnnotations()
public FFTDataBlock getOutputDataBlock()
public int getOfflineData(PamDataBlock dataBlock, PamObserver endUser, long startMillis, long endMillis, RequestCancellationObject cancellationObject)
PamProcess
This will be called from a PamDatablock in offline viewer mode from requestOfflineData(PamObserver observer, long startMillis, long endMillis).
this is used to request data from upstream processes, e.g. o get raw data to turn into FFT data units to go to the spectrogram display (possible going via decimators and any other processes before spitting out the right data.
getOfflineData
in class PamProcess
dataBlock
- data block making the request.endUser
- observer which made the original data request.startMillis
- start time in millisecondsendMillis
- end time in milliseconds.public boolean fillXMLParameters(org.w3c.dom.Document doc, org.w3c.dom.Element paramsEl)
PamProcess
Generally, this will not be used since most of a modules parameters will have been set in the ControlledUnit which has a similar function.