Package gpl
Class GPLProcess
- All Implemented Interfaces:
 PamObserver,ProcessAnnotator
- 
Field Summary
FieldsFields inherited from class PamguardMVC.PamProcess
outputDataBlocks, parentDataBlock, processName, sampleRate - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidaddBlockData(PamBlockDataList blockDataList) Called in sequence for data in a block so it can make background measurementsvoidaddSingleData(PamObservable o, PamDataUnit dataUnit) Called in sequence for data in a block so it can run detectorsdouble[]Get the range of frequencies over which the data in this process are likely to be present.intvoidnotifyModelChanged(int changeType) voidCalled for each process before any of them receive the PamStart commandvoidsetBlockState(BlockState state) Set the block state - tell it what to expect next so that it can clean up at the start middle and end of a block of data.voidsetSampleRate(float sampleRate, boolean notify) New sample rateMethods inherited from class PamguardMVC.blockprocess.PamBlockProcess
absSamplesToMilliseconds, channelSplitList, debugMessage, isLastChannel, newData, pamStart, pamStop, receiveSourceNotification, reverseDataList, setParentDataBlockMethods inherited from class PamguardMVC.PamProcess
absMillisecondsToSamples, addData, addMultiPlexDataBlock, addOutputDataBlock, changedThreading, clearOldData, createAnnotations, destroyProcess, dumpBufferStatus, flushDataBlockBuffers, getAncestorDataBlock, getAnnotation, getChainPosition, getCompatibleDataUnits, getCpuPercent, getLastSourceNotificationObject, getLastSourceNotificationType, getMuiltiplexDataBlock, getNumAnnotations, getNumMuiltiplexDataBlocks, getNumOutputDataBlocks, getObserverName, getObserverObject, getOfflineData, getOfflineData, getOutputDataBlock, getOutputDataBlocks, getPamControlledUnit, getParentDataBlock, getParentDataBlocks, getParentProcess, getProcessCheck, getProcessName, getRawSourceDataBlock, getRawSourceDataBlock, getRequiredDataHistory, getSampleRate, getSourceDataBlock, getSourceProcess, hasOutputDatablock, isCanMultiThread, isExternalProcess, isMultiplex, makePamProcess, masterClockUpdate, noteNewSettings, prepareProcessOK, processNewBuoyData, relMillisecondsToSamples, relSamplesToMilliseconds, removeAllDataBlocks, removeAllMultiPlexDataBlocks, removeMultiPlexDataBlock, removeObservable, removeOutputDatablock, resetDataBlocks, saveViewerData, setCanMultiThread, setExternalProcess, setMultiplex, setParentDataBlock, setProcessCheck, setProcessName, setupProcess, toString, updateData 
- 
Field Details
- 
blockModes
 - 
binLo
public int binLo - 
binHi
public int binHi - 
sum_binLo
public int sum_binLo - 
sum_binHi
public int sum_binHi 
 - 
 - 
Constructor Details
- 
GPLProcess
 
 - 
 - 
Method Details
- 
getBlockParams
- Specified by:
 getBlockParamsin classPamBlockProcess
 - 
setBlockState
Description copied from class:PamBlockProcessSet the block state - tell it what to expect next so that it can clean up at the start middle and end of a block of data.- Specified by:
 setBlockStatein classPamBlockProcess- Parameters:
 state-
 - 
addBlockData
Description copied from class:PamBlockProcessCalled in sequence for data in a block so it can make background measurements- Specified by:
 addBlockDatain classPamBlockProcess- Parameters:
 blockDataList- blocked list of data units (possibly interleaved by channel)
 - 
addSingleData
Description copied from class:PamBlockProcessCalled in sequence for data in a block so it can run detectors- Specified by:
 addSingleDatain classPamBlockProcess- Parameters:
 o-dataUnit-
 - 
notifyModelChanged
public void notifyModelChanged(int changeType) - Overrides:
 notifyModelChangedin classPamProcess
 - 
prepareProcess
public void prepareProcess()Description copied from class:PamProcessCalled for each process before any of them receive the PamStart command- Overrides:
 prepareProcessin classPamProcess
 - 
setSampleRate
public void setSampleRate(float sampleRate, boolean notify) Description copied from interface:PamObserverNew sample rate- Specified by:
 setSampleRatein interfacePamObserver- Overrides:
 setSampleRatein classPamProcess- Parameters:
 sampleRate-notify- Notify other PamObservers and PamObservables in the chain.
 - 
getGplControlledUnit
- Returns:
 - the gplControlledUnit
 
 - 
getWhitenedSpectrogram
- Returns:
 - the whitenedSpectrogram
 
 - 
getFrequencyRange
public double[] getFrequencyRange()Description copied from class:PamProcessGet the range of frequencies over which the data in this process are likely to be present. Note that this is pretty crude and may not reflect the true range, for example, the click detector will return the limits of it's trigger filter, and there are plenty of sounds outside of that range which may have most of their energy well outside of the trigger range of the detector.- Overrides:
 getFrequencyRangein classPamProcess- Returns:
 - Nominal frequency range for data in this block.
 
 - 
getStateDataBlock
- Returns:
 - the stateDataBlock
 
 - 
getSourceFFTData
- Returns:
 - the sourceFFTData
 
 - 
getSourceFFTLength
public int getSourceFFTLength() 
 -