Package whistlesAndMoans
Class WhistleToneConnectProcess
java.lang.Object
PamguardMVC.PamProcess
whistlesAndMoans.WhistleToneConnectProcess
- All Implemented Interfaces:
 PamObserver,ProcessAnnotator
- 
Nested Class Summary
Nested Classes - 
Field Summary
FieldsFields inherited from class PamguardMVC.PamProcess
outputDataBlocks, parentDataBlock, processName, sampleRate - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionfindShapeConnector(int channelMap) Find the appropriate shape connector for the given channels.intWhen 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.protected intdouble[]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) voidnewData(PamObservable o, PamDataUnit arg) voidpamStart()Called for each process to tell it to start (may not be necessary for processes which are listening for data anyway).voidpamStop()Stops the process.voidCalled for each process before any of them receive the PamStart commandvoidprocessNewBuoyData(BuoyStatusDataUnit statusDataUnit, PamDataUnit dataUnit) voidcalled 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:
 
 - 
dataCounter
 
 - 
 - 
Constructor Details
- 
WhistleToneConnectProcess
 
 - 
 - 
Method Details
- 
newData
- Overrides:
 newDatain classPamProcess
 - 
pamStart
public void pamStart()Description copied from class:PamProcessCalled for each process to tell it to start (may not be necessary for processes which are listening for data anyway).- Specified by:
 pamStartin classPamProcess
 - 
pamStop
public void pamStop()Description copied from class:PamProcessStops the process.- Specified by:
 pamStopin classPamProcess
 - 
setupProcess
public void setupProcess()Description copied from class:PamProcesscalled 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:
 setupProcessin classPamProcess
 - 
prepareProcess
public void prepareProcess()Description copied from class:PamProcessCalled for each process before any of them receive the PamStart command- Overrides:
 prepareProcessin classPamProcess
 - 
getFFTLen
protected int getFFTLen() - 
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: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.
 
 - 
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:
 processNewBuoyDatain 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:
 
 
 -