Package gpl
Class GPLProcess
- All Implemented Interfaces:
PamObserver
,ProcessAnnotator
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addBlockData
(PamBlockDataList blockDataList) Called in sequence for data in a block so it can make background measurementsvoid
addSingleData
(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.int
void
notifyModelChanged
(int changeType) void
Called for each process before any of them receive the PamStart commandvoid
setBlockState
(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.void
setSampleRate
(float sampleRate, boolean notify) New sample rateMethods inherited from class PamguardMVC.blockprocess.PamBlockProcess
absSamplesToMilliseconds, channelSplitList, isLastChannel, newData, pamStart, pamStop, receiveSourceNotification, reverseDataList, setParentDataBlock
Methods 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:
getBlockParams
in classPamBlockProcess
-
setBlockState
Description copied from class:PamBlockProcess
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.- Specified by:
setBlockState
in classPamBlockProcess
-
addBlockData
Description copied from class:PamBlockProcess
Called in sequence for data in a block so it can make background measurements- Specified by:
addBlockData
in classPamBlockProcess
- Parameters:
blockDataList
- blocked list of data units (possibly interleaved by channel)
-
addSingleData
Description copied from class:PamBlockProcess
Called in sequence for data in a block so it can run detectors- Specified by:
addSingleData
in classPamBlockProcess
-
notifyModelChanged
public void notifyModelChanged(int changeType) - Overrides:
notifyModelChanged
in classPamProcess
-
prepareProcess
public void prepareProcess()Description copied from class:PamProcess
Called for each process before any of them receive the PamStart command- Overrides:
prepareProcess
in classPamProcess
-
setSampleRate
public void setSampleRate(float sampleRate, boolean notify) 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.
-
getGplControlledUnit
- Returns:
- the gplControlledUnit
-
getWhitenedSpectrogram
- Returns:
- the whitenedSpectrogram
-
getFrequencyRange
public double[] getFrequencyRange()Description copied from class:PamProcess
Get 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:
getFrequencyRange
in classPamProcess
- Returns:
- Nominal frequency range for data in this block.
-
getStateDataBlock
- Returns:
- the stateDataBlock
-
getSourceFFTData
- Returns:
- the sourceFFTData
-
getSourceFFTLength
public int getSourceFFTLength()
-