Package decimator
Class DecimatorProcess
java.lang.Object
PamguardMVC.PamProcess
decimator.DecimatorProcess
- All Implemented Interfaces:
PamObserver
,ProcessAnnotator
Deprecated.
Decimates data - i.e. reduces it's frequency by
first of all digitally filtering, then downsampling
- Author:
- Doug Gillespie
Deprecated April 2019. Replaced with DecimatorProcessW which uses the DecimatorWorker class which is much better at upsampling.
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.A list of data block class types which are compatible as parent data blocks for the PamProcess.int
getOfflineData
(OfflineDataLoadInfo offlineLoadDataInfo) Deprecated.Deprecated.long
Deprecated.void
masterClockUpdate
(long milliSeconds, long sampleNumber) Deprecated.void
newData
(PamObservable obs, PamDataUnit newData) Deprecated.void
Deprecated.void
pamStart()
Deprecated.Called for each process to tell it to start (may not be necessary for processes which are listening for data anyway).void
pamStop()
Deprecated.Stops the process.void
Deprecated.Called for each process before any of them receive the PamStart commandvoid
setSampleRate
(float sampleRate, boolean notify) Deprecated.New sample ratevoid
Deprecated.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, getCpuPercent, getFrequencyRange, getLastSourceNotificationObject, getLastSourceNotificationType, getMuiltiplexDataBlock, getNumAnnotations, getNumMuiltiplexDataBlocks, getNumOutputDataBlocks, getObserverName, getObserverObject, getOfflineData, getOutputDataBlock, getOutputDataBlocks, getPamControlledUnit, getParentDataBlock, getParentDataBlocks, getParentProcess, getProcessCheck, getProcessName, getRawSourceDataBlock, getRawSourceDataBlock, getSampleRate, getSourceDataBlock, getSourceProcess, hasOutputDatablock, isCanMultiThread, isExternalProcess, isMultiplex, makePamProcess, noteNewSettings, notifyModelChanged, prepareProcessOK, processNewBuoyData, receiveSourceNotification, relMillisecondsToSamples, relSamplesToMilliseconds, removeAllDataBlocks, removeAllMultiPlexDataBlocks, removeMultiPlexDataBlock, removeObservable, removeOutputDatablock, resetDataBlocks, saveViewerData, setCanMultiThread, setExternalProcess, setMultiplex, setParentDataBlock, setParentDataBlock, setProcessCheck, setProcessName, toString, updateData
-
Method Details
-
setupProcess
public void setupProcess()Deprecated.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
-
getRequiredDataHistory
Deprecated.- 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
-
setSampleRate
public void setSampleRate(float sampleRate, boolean notify) Deprecated.Description copied from interface:PamObserver
New sample rate- Specified by:
setSampleRate
in interfacePamObserver
- Overrides:
setSampleRate
in classPamProcess
- Parameters:
notify
- Notify other PamObservers and PamObservables in the chain.
-
masterClockUpdate
public void masterClockUpdate(long milliSeconds, long sampleNumber) Deprecated.- Specified by:
masterClockUpdate
in interfacePamObserver
- Overrides:
masterClockUpdate
in classPamProcess
-
newSettings
public void newSettings()Deprecated. -
getOutputDataBlock
Deprecated.- Returns:
- the outputDataBlock
-
pamStart
public void pamStart()Deprecated.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()Deprecated.Description copied from class:PamProcess
Stops the process.- Specified by:
pamStop
in classPamProcess
-
newData
Deprecated.- Overrides:
newData
in classPamProcess
-
prepareProcess
public void prepareProcess()Deprecated.Description copied from class:PamProcess
Called for each process before any of them receive the PamStart command- Overrides:
prepareProcess
in classPamProcess
-
getOfflineData
Deprecated.- Overrides:
getOfflineData
in classPamProcess
-
getCompatibleDataUnits
Deprecated.Description copied from class:PamProcess
A list of data block class types which are compatible as parent data blocks for the PamProcess. This can return null, e.g. in the case of Acquisition process.- Overrides:
getCompatibleDataUnits
in classPamProcess
- Returns:
- a list of PamDataBlock sub class types which can be used as parent data blocks for the process.
-