Package noiseOneBand

Class OneBandProcess

java.lang.Object
PamguardMVC.PamProcess
noiseOneBand.OneBandProcess
All Implemented Interfaces:
PamObserver, ProcessAnnotator

public class OneBandProcess extends PamProcess
  • Field Details

    • nanValue

      public static final int nanValue
      value to be considered Double.Nan as an int
      See Also:
  • Constructor Details

    • OneBandProcess

      public OneBandProcess(OneBandControl oneBandControl)
  • Method Details

    • newData

      public void newData(PamObservable o, PamDataUnit pamDataUnit)
      Overrides:
      newData in class PamProcess
    • getRequiredDataHistory

      public long getRequiredDataHistory(PamObservable o, Object arg)
      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
    • setupProcess

      public void setupProcess()
      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
    • prepareProcess

      public void prepareProcess()
      Description copied from class: PamProcess
      Called for each process before any of them receive the PamStart command
      Overrides:
      prepareProcess in class PamProcess
    • pamStart

      public void pamStart()
      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()
      Description copied from class: PamProcess
      Stops the process.
      Specified by:
      pamStop in class PamProcess
    • getRawSourceDataBlock

      public PamRawDataBlock getRawSourceDataBlock()
      Description copied from class: PamProcess
      Find the absolute source of raw audio data if one exists

      Overrides:
      getRawSourceDataBlock in class PamProcess
      Returns:
      the sourceDataBlock
    • getWaveOutDataBlock

      public PamRawDataBlock getWaveOutDataBlock()
      Returns:
      the waveOutDataBlock
    • getMeasureDataBlock

      public OneBandDataBlock getMeasureDataBlock()
      Returns:
      the measureDataBlock
    • processNewBuoyData

      public void processNewBuoyData(BuoyStatusDataUnit buoyStatus, PamDataUnit dataUnit)
      Overrides:
      processNewBuoyData in class PamProcess
    • calculateSEL

      public void calculateSEL(OneBandDataUnit du, int selIntegrationTime)
      Calculate SEL and add it to a data unit.
      Parameters:
      du - most recent data unit
      selIntegrationTime - SEL integration time in seconds.