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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Called 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.void
masterClockUpdate
(long timeMilliseconds, long sampleNumber) void
newClickData
(PamDataUnit newClick) New click detection has arrived.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 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:PamProcess
Called 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:
destroyProcess
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
-
newData
- Overrides:
newData
in classPamProcess
-
getProcessCheck
Description copied from class:PamProcess
Get a process check object. This indicates the current status of a process.- Overrides:
getProcessCheck
in 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: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
-
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:
masterClockUpdate
in interfacePamObserver
- Overrides:
masterClockUpdate
in classPamProcess
-