clickDetector
Class ClickTrainDetector
java.lang.Object
PamguardMVC.PamProcess
clickDetector.ClickTrainDetector
- All Implemented Interfaces:
- Annotator, PamObserver
public class ClickTrainDetector
- extends PamProcess
| Methods inherited from class PamguardMVC.PamProcess |
absMillisecondsToSamples, absSamplesToMilliseconds, addOutputDataBlock, changedThreading, clearOldData, createAnnotations, destroyProcess, fillXMLElement, fillXMLParameters, getAncestorDataBlock, getAnnotation, getBackendProcess, getChainPosition, getCpuPercent, getNumAnnotations, getNumOutputDataBlocks, getObserverName, getObserverObject, getOfflineData, getOutputDataBlock, getPamControlledUnit, getParentDataBlock, getParentProcess, getProcessName, getRawSourceDataBlock, getSampleRate, getSourceDataBlock, getSourceProcess, isCanMultiThread, makePamProcess, masterClockUpdate, noteNewSettings, notifyModelChanged, prepareProcess, relMillisecondsToSamples, relSamplesToMilliseconds, removeObservable, removeOutputDatablock, saveViewerData, setBackendProcess, setCanMultiThread, setParentDataBlock, setParentDataBlock, setProcessName, setupProcess, toString, update, updateData |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
clickControl
ClickControl clickControl
clickDetector
ClickDetector clickDetector
clickDataBlock
PamDataBlock<ClickDetection> clickDataBlock
clickTrains
ClickTrainDataBlock clickTrains
newClickTrains
ClickTrainDataBlock newClickTrains
ctRecorderTrigger
private final ClickTrainDetector.CTRecorderTrigger ctRecorderTrigger
minAngleForFit
private final double minAngleForFit
- See Also:
- Constant Field Values
detectionGroupLocaliser
DetectionGroupLocaliser detectionGroupLocaliser
ClickTrainDetector
ClickTrainDetector(ClickControl clickControl,
PamDataBlock<ClickDetection> clickDataBlock)
clearAllTrains
public void clearAllTrains()
getRequiredDataHistory
public long getRequiredDataHistory(PamObservable o,
java.lang.Object arg)
- Specified by:
getRequiredDataHistory in interface PamObserver- Overrides:
getRequiredDataHistory in class PamProcess
- Parameters:
o - PamObservable class requiring the dataarg - optional argument from PamObservable
- Returns:
- time in milliseconds requried by data held in PamObservable
newData
public void newData(PamObservable o,
PamDataUnit arg)
- Overrides:
newData in class PamProcess
closeTrainTime
protected double closeTrainTime()
closeOldTrains
private void closeOldTrains(ClickGroupDataBlock<ClickTrainDetection> dataBlock,
long now)
processClick
protected ClickTrainDetection processClick(ClickDetection newClick)
matchClickIntoGroup
protected ClickTrainDetection matchClickIntoGroup(ClickDetection newClick)
localiseClickTrain
protected void localiseClickTrain(ClickTrainDetection clickTrain)
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 class PamProcess
pamStop
public void pamStop()
- Description copied from class:
PamProcess
- Stops the process.
- Specified by:
pamStop in class PamProcess
setSampleRate
public void setSampleRate(float sampleRate,
boolean notify)
- Description copied from interface:
PamObserver
- New sample rate
- Specified by:
setSampleRate in interface PamObserver- Overrides:
setSampleRate in class PamProcess
notify - Notify other PamObservers and PamObservables in the chain.