Package decimator

Class DecimatorProcess

java.lang.Object
PamguardMVC.PamProcess
decimator.DecimatorProcess
All Implemented Interfaces:
PamObserver, ProcessAnnotator

@Deprecated public class DecimatorProcess extends PamProcess
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 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 class PamProcess
    • getRequiredDataHistory

      public long getRequiredDataHistory(PamObservable o, Object arg)
      Deprecated.
      Specified by:
      getRequiredDataHistory in interface PamObserver
      Overrides:
      getRequiredDataHistory in class PamProcess
      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 interface PamObserver
      Overrides:
      setSampleRate in class PamProcess
      Parameters:
      notify - Notify other PamObservers and PamObservables in the chain.
    • masterClockUpdate

      public void masterClockUpdate(long milliSeconds, long sampleNumber)
      Deprecated.
      Specified by:
      masterClockUpdate in interface PamObserver
      Overrides:
      masterClockUpdate in class PamProcess
    • newSettings

      public void newSettings()
      Deprecated.
    • getOutputDataBlock

      public PamRawDataBlock 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 class PamProcess
    • pamStop

      public void pamStop()
      Deprecated.
      Description copied from class: PamProcess
      Stops the process.
      Specified by:
      pamStop in class PamProcess
    • newData

      public void newData(PamObservable obs, PamDataUnit newData)
      Deprecated.
      Overrides:
      newData in class PamProcess
    • 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 class PamProcess
    • getOfflineData

      public int getOfflineData(OfflineDataLoadInfo offlineLoadDataInfo)
      Deprecated.
      Overrides:
      getOfflineData in class PamProcess
    • getCompatibleDataUnits

      public ArrayList 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 class PamProcess
      Returns:
      a list of PamDataBlock sub class types which can be used as parent data blocks for the process.