Package whistlesAndMoans
Class WhistleToneConnectProcess
java.lang.Object
PamguardMVC.PamProcess
whistlesAndMoans.WhistleToneConnectProcess
- All Implemented Interfaces:
PamObserver
,ProcessAnnotator
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfindShapeConnector
(int channelMap) Find the appropriate shape connector for the given channels.int
When delay data are written to binary files, int16's are used, but these must be scaled up to allow for sub-sample timing.double[]
getFFTInputList
(ConnectedRegion connectedRegion, int channelBitmap) Get the list of FFT data that input into a connected region the given channel list.double[]
Get the range of frequencies over which the data in this process are likely to be present.Get info on current localisation algorithm.getModuleSummary
(boolean clear) 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
Called for each process before any of them receive the PamStart commandvoid
processNewBuoyData
(BuoyStatusDataUnit statusDataUnit, PamDataUnit dataUnit) void
called for every process once the systemmodel has been created.Methods inherited from class PamguardMVC.PamProcess
absMillisecondsToSamples, absSamplesToMilliseconds, 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, notifyModelChanged, prepareProcessOK, receiveSourceNotification, relMillisecondsToSamples, relSamplesToMilliseconds, removeAllDataBlocks, removeAllMultiPlexDataBlocks, removeMultiPlexDataBlock, removeObservable, removeOutputDatablock, resetDataBlocks, saveViewerData, setCanMultiThread, setExternalProcess, setMultiplex, setParentDataBlock, setParentDataBlock, setProcessCheck, setProcessName, setSampleRate, toString, updateData
-
Field Details
-
streamName
- See Also:
-
-
Constructor Details
-
WhistleToneConnectProcess
-
-
Method Details
-
newData
- Overrides:
newData
in classPamProcess
-
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 classPamProcess
-
pamStop
public void pamStop()Description copied from class:PamProcess
Stops the process.- Specified by:
pamStop
in classPamProcess
-
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 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
-
findShapeConnector
Find the appropriate shape connector for the given channels. The first time this gets called in viewer mode, there will be nothing there,so call setupProcess to create them.- Parameters:
channelMap
- channel bitmap we're looking for.- Returns:
- a ShapeConnector or null if the channelMap doesn't match any existing connectors for this configuration.
-
getOutputData
-
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.
-
getDurationRange
public double[] getDurationRange() -
getDelayScale
public int getDelayScale()When delay data are written to binary files, int16's are used, but these must be scaled up to allow for sub-sample timing. How much they can be scaled depends a lot on the array spacing, sample rate and FFT length.- Returns:
- scale factor which will give the highest timing resolution without overflows.
-
processNewBuoyData
- Overrides:
processNewBuoyData
in classPamProcess
-
getFFTInputList
Get the list of FFT data that input into a connected region the given channel list.- Parameters:
connectedRegion
- connected region.channelBitmap
- required channels- Returns:
- channel interleaved list of FFT data.
-
getModuleSummary
-
getLocAlgorithmInfo
Get info on current localisation algorithm. Grab the BL from the first group that has one.- Returns:
-