public class DecimatorProcess extends PamProcess
Modifier and Type | Method and Description |
---|---|
int |
getOfflineData(PamDataBlock dataBlock,
PamObserver endUser,
long startMillis,
long endMillis,
RequestCancellationObject cancellationObject)
Request offline data.
|
PamRawDataBlock |
getOutputDataBlock() |
long |
getRequiredDataHistory(PamObservable o,
java.lang.Object arg) |
void |
masterClockUpdate(long milliSeconds,
long sampleNumber) |
void |
newData(PamObservable obs,
PamDataUnit newData) |
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
|
void |
setupProcess()
called for every process once the systemmodel has been created.
|
absMillisecondsToSamples, absSamplesToMilliseconds, addOutputDataBlock, changedThreading, clearOldData, createAnnotations, destroyProcess, fillXMLElement, flushDataBlockBuffers, getAncestorDataBlock, getAnnotation, getChainPosition, getCpuPercent, getNumAnnotations, getNumOutputDataBlocks, getObserverName, getObserverObject, getOutputDataBlock, getOutputDataBlocks, getPamControlledUnit, getParentDataBlock, getParentProcess, getProcessName, getRawSourceDataBlock, getSampleRate, getSourceDataBlock, getSourceProcess, isCanMultiThread, makePamProcess, noteNewSettings, notifyModelChanged, processNewBuoyData, relMillisecondsToSamples, relSamplesToMilliseconds, removeAllDataBlocks, removeObservable, removeOutputDatablock, resetDataBlocks, saveViewerData, setCanMultiThread, setParentDataBlock, setParentDataBlock, setProcessName, toString, update, updateData
public void setupProcess()
PamProcess
setupProcess
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.public void masterClockUpdate(long milliSeconds, long sampleNumber)
masterClockUpdate
in interface PamObserver
masterClockUpdate
in class PamProcess
public PamRawDataBlock getOutputDataBlock()
public void pamStart()
PamProcess
pamStart
in class PamProcess
public void pamStop()
PamProcess
pamStop
in class PamProcess
public void newData(PamObservable obs, PamDataUnit newData)
newData
in class PamProcess
public void prepareProcess()
PamProcess
prepareProcess
in class PamProcess
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.