Package clickTrainDetector
Class ClickTrainProcess
java.lang.Object
PamguardMVC.PamProcess
clickTrainDetector.ClickTrainProcess
- All Implemented Interfaces:
 PamObserver,ProcessAnnotator
The core of the click train detector. Runs the click train detector on click detections.
- Author:
 - Jamie Macaulay
 
- 
Field Summary
Fields inherited from class PamguardMVC.PamProcess
outputDataBlocks, parentDataBlock, processName, sampleRate - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidCalled from the PamControlled unit when a PamControlled unit is removed from the model.Get the clcik trian controller.Get the main click train output data blockGet a process check object.Get the temporary click train data block.voidmasterClockUpdate(long timeMilliseconds, long sampleNumber) voidnewClickData(PamDataUnit newClick) New click detection has arrived.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 every process once the systemmodel has been created.Methods inherited from class PamguardMVC.PamProcess
absMillisecondsToSamples, absSamplesToMilliseconds, addData, addMultiPlexDataBlock, addOutputDataBlock, changedThreading, clearOldData, createAnnotations, dumpBufferStatus, flushDataBlockBuffers, getAncestorDataBlock, getAnnotation, getChainPosition, getCompatibleDataUnits, getCpuPercent, getFrequencyRange, getLastSourceNotificationObject, getLastSourceNotificationType, getMuiltiplexDataBlock, getNumAnnotations, getNumMuiltiplexDataBlocks, getNumOutputDataBlocks, getObserverName, getObserverObject, getOfflineData, getOfflineData, getOutputDataBlock, getOutputDataBlocks, getPamControlledUnit, getParentDataBlock, getParentDataBlocks, getParentProcess, getProcessName, getRawSourceDataBlock, getRawSourceDataBlock, getRequiredDataHistory, getSampleRate, getSourceDataBlock, getSourceProcess, hasOutputDatablock, isCanMultiThread, isExternalProcess, isMultiplex, makePamProcess, noteNewSettings, notifyModelChanged, prepareProcess, prepareProcessOK, processNewBuoyData, receiveSourceNotification, relMillisecondsToSamples, relSamplesToMilliseconds, removeAllDataBlocks, removeAllMultiPlexDataBlocks, removeMultiPlexDataBlock, removeObservable, removeOutputDatablock, resetDataBlocks, saveViewerData, setCanMultiThread, setExternalProcess, setMultiplex, setParentDataBlock, setParentDataBlock, setProcessCheck, setProcessName, setSampleRate, toString, updateData 
- 
Constructor Details
- 
ClickTrainProcess
 
 - 
 - 
Method Details
- 
destroyProcess
public void destroyProcess()Description copied from class:PamProcessCalled from the PamControlled unit when a PamControlled unit is removed from the model. Offers an opportunity to disconnect individual processed from the rest of the model. May be necessary to override to clean up some processes.- Overrides:
 destroyProcessin 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
 - 
newData
- Overrides:
 newDatain classPamProcess
 - 
getProcessCheck
Description copied from class:PamProcessGet a process check object. This indicates the current status of a process.- Overrides:
 getProcessCheckin classPamProcess- Returns:
 - the process check object.
 
 - 
newClickData
New click detection has arrived.- Parameters:
 click- - the new click
 - 
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
 - 
getClickTrainDataBlock
Get the main click train output data block- Returns:
 - - the click train output data block.
 
 - 
getUnconfirmedCTDataBlock
Get the temporary click train data block. This is used to store unconfirmed tracks for painting on displays.- Returns:
 - the temporary click train data block.
 
 - 
getClickTrainControl
Get the clcik trian controller.- Returns:
 - the click train controlle.r
 
 - 
masterClockUpdate
public void masterClockUpdate(long timeMilliseconds, long sampleNumber) - Specified by:
 masterClockUpdatein interfacePamObserver- Overrides:
 masterClockUpdatein classPamProcess
 
 -