public class ThresholdDetectorProcess extends PamProcess
Constructor and Description |
---|
ThresholdDetectorProcess(LikelihoodDetectionUnit ldu,
java.lang.String targetIdentifier,
double estimatedPeakTimeAccuracy,
PamDataBlock signalEstimate,
double secondsBetweenDetections,
java.util.ArrayList<SignalBand> signalBands,
java.util.ArrayList<GuardBand> guardBands)
Constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getProcessName() |
long |
getRequiredDataHistory(PamObservable o,
java.lang.Object arg) |
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 |
setSampleRate(float sampleRate,
boolean notify)
New sample rate
|
absMillisecondsToSamples, absSamplesToMilliseconds, addOutputDataBlock, changedThreading, clearOldData, createAnnotations, destroyProcess, fillXMLElement, flushDataBlockBuffers, getAncestorDataBlock, getAnnotation, getChainPosition, getCpuPercent, getNumAnnotations, getNumOutputDataBlocks, getObserverName, getObserverObject, getOfflineData, getOutputDataBlock, getOutputDataBlocks, getPamControlledUnit, getParentDataBlock, getParentProcess, getRawSourceDataBlock, getSampleRate, getSourceDataBlock, getSourceProcess, isCanMultiThread, makePamProcess, masterClockUpdate, noteNewSettings, notifyModelChanged, processNewBuoyData, relMillisecondsToSamples, relSamplesToMilliseconds, removeAllDataBlocks, removeObservable, removeOutputDatablock, resetDataBlocks, saveViewerData, setCanMultiThread, setParentDataBlock, setParentDataBlock, setProcessName, setupProcess, toString, update, updateData
public ThresholdDetectorProcess(LikelihoodDetectionUnit ldu, java.lang.String targetIdentifier, double estimatedPeakTimeAccuracy, PamDataBlock signalEstimate, double secondsBetweenDetections, java.util.ArrayList<SignalBand> signalBands, java.util.ArrayList<GuardBand> guardBands)
ldu
- Parent moduletargetIdentifier
- The free form string (user defined) describing the overall target.estimatedPeakTimeAccuracy
- signalEstimate
- The input data blocksecondsBetweenDetections
- The time, in seconds, that must pass between detections on a channel.signalBands
- List of all defined signal bands, must contain at least one.guardBands
- List of all defined noise bands, can be empty.public void pamStart()
PamProcess
pamStart
in class PamProcess
public void pamStop()
PamProcess
pamStop
in class PamProcess
public void newData(PamObservable o, PamDataUnit arg)
newData
in class PamProcess
public java.lang.String getProcessName()
getProcessName
in class PamProcess
public void prepareProcess()
PamProcess
prepareProcess
in class PamProcess
public long getRequiredDataHistory(PamObservable o, java.lang.Object arg)
getRequiredDataHistory
in interface PamObserver
getRequiredDataHistory
in class PamProcess
o
- PamObservable class requiring the dataarg
- optional argument from PamObservablepublic void setSampleRate(float sampleRate, boolean notify)
PamObserver
setSampleRate
in interface PamObserver
setSampleRate
in class PamProcess
notify
- Notify other PamObservers and PamObservables in the chain.