WorkshopDemo
Class WorkshopProcess

java.lang.Object
  extended by PamguardMVC.PamProcess
      extended by WorkshopDemo.WorkshopProcess
All Implemented Interfaces:
Annotator, PamObserver

public class WorkshopProcess
extends PamProcess


Nested Class Summary
(package private)  class WorkshopProcess.ChannelDetector
          Since the detector may be running on several channels, make a sub class for the actual detector code so that multiple instances may be created.
 
Field Summary
(package private)  PamDataBlock<BackgroundDataUnit> backgroundDataBlock
           
(package private)  double backgroundUpdateConstant
          constatns for background update.
(package private)  double backgroundUpdateConstant1
          constatns for background update.
(package private)  int bin1
          Frequency bins for energy summation.
(package private)  int bin2
          Frequency bins for energy summation.
(package private)  WorkshopProcess.ChannelDetector[] channelDetectors
          reference to a list of detectors handling data from a single channel each.
(package private)  AcquisitionProcess daqProcess
          At some point we'll need to get back to the original ADC data and hydrophone information in order to convert amplitude data to dB re 1 micropascal - so we'll need daqProcess.
(package private)  FFTDataBlock fftDataBlock
          Reference to the FFT source data block
(package private)  PamDataBlock<WorkshopDataUnit> outputDataBlock
          Datablock for output data.
(package private)  double thresholdRatio
          detection threshold as a simpel ratio (not dB !)
(package private)  int usedChannels
          bitmap of channels in use.
(package private)  WorkshopController workshopController
          Refefence to PamContolledUnit for this module
 
Fields inherited from class PamguardMVC.PamProcess
outputDataBlocks, processName, sampleRate
 
Constructor Summary
WorkshopProcess(WorkshopController workshopController)
           
 
Method Summary
 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
 
Methods inherited from class PamguardMVC.PamProcess
absMillisecondsToSamples, absSamplesToMilliseconds, addOutputDataBlock, changedThreading, clearOldData, createAnnotations, destroyProcess, fillXMLElement, fillXMLParameters, getAncestorDataBlock, getAnnotation, getBackendProcess, getChainPosition, getCpuPercent, getNumAnnotations, getNumOutputDataBlocks, getObserverName, getObserverObject, getOfflineData, getOutputDataBlock, getPamControlledUnit, getParentDataBlock, getParentProcess, getProcessName, getRawSourceDataBlock, getRequiredDataHistory, getSampleRate, getSourceDataBlock, getSourceProcess, isCanMultiThread, makePamProcess, masterClockUpdate, noteNewSettings, notifyModelChanged, relMillisecondsToSamples, relSamplesToMilliseconds, removeObservable, removeOutputDatablock, saveViewerData, setBackendProcess, setCanMultiThread, setParentDataBlock, setParentDataBlock, setProcessName, setSampleRate, setupProcess, toString, update, updateData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

workshopController

WorkshopController workshopController
Refefence to PamContolledUnit for this module


fftDataBlock

FFTDataBlock fftDataBlock
Reference to the FFT source data block


outputDataBlock

PamDataBlock<WorkshopDataUnit> outputDataBlock
Datablock for output data.


backgroundDataBlock

PamDataBlock<BackgroundDataUnit> backgroundDataBlock

usedChannels

int usedChannels
bitmap of channels in use.


channelDetectors

WorkshopProcess.ChannelDetector[] channelDetectors
reference to a list of detectors handling data from a single channel each.


bin1

int bin1
Frequency bins for energy summation.


bin2

int bin2
Frequency bins for energy summation.


thresholdRatio

double thresholdRatio
detection threshold as a simpel ratio (not dB !)


backgroundUpdateConstant

double backgroundUpdateConstant
constatns for background update.


backgroundUpdateConstant1

double backgroundUpdateConstant1
constatns for background update.


daqProcess

AcquisitionProcess daqProcess
At some point we'll need to get back to the original ADC data and hydrophone information in order to convert amplitude data to dB re 1 micropascal - so we'll need daqProcess.

Constructor Detail

WorkshopProcess

public WorkshopProcess(WorkshopController workshopController)
Method Detail

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

newData

public void newData(PamObservable o,
                    PamDataUnit arg)
Overrides:
newData 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