Package qa.monitor
Class QAMonitorProcess
java.lang.Object
PamguardMVC.PamProcess
qa.monitor.QAMonitorProcess
- All Implemented Interfaces:
PamObserver,ProcessAnnotator
Process to monitor output of all other detector data blocks.
- Author:
- dg50
-
Field Summary
Fields inherited from class PamguardMVC.PamProcess
outputDataBlocks, parentDataBlock, processName, sampleRate -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckMatches(PamObservable o, PamDataUnit detection, boolean isUpdate) booleancheckMatches(PamObservable o, PamDataUnit detection, long detectionUID, boolean isUpdate) Check this detection (or other type of data) to see if it matches with any of the generated sounds currently held in memory.voidnewData(PamObservable o, PamDataUnit detection) 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.voidupdateData(PamObservable o, PamDataUnit detection) Informs the PamObserver that existing data have been updatedMethods inherited from class PamguardMVC.PamProcess
absMillisecondsToSamples, absSamplesToMilliseconds, addData, addMultiPlexDataBlock, addOutputDataBlock, changedThreading, clearOldData, createAnnotations, destroyProcess, dumpBufferStatus, flushDataBlockBuffers, getAncestorDataBlock, getAnnotation, getChainPosition, getCompatibleDataUnits, getCpuPercent, getFrequencyRange, 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, prepareProcess, prepareProcessOK, processNewBuoyData, receiveSourceNotification, relMillisecondsToSamples, relSamplesToMilliseconds, removeAllDataBlocks, removeAllMultiPlexDataBlocks, removeMultiPlexDataBlock, removeObservable, removeOutputDatablock, resetDataBlocks, saveViewerData, setCanMultiThread, setExternalProcess, setMultiplex, setParentDataBlock, setParentDataBlock, setProcessCheck, setProcessName, setSampleRate, toString
-
Constructor Details
-
QAMonitorProcess
-
-
Method Details
-
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
-
newData
- Overrides:
newDatain classPamProcess
-
updateData
Description copied from interface:PamObserverInforms the PamObserver that existing data have been updated- Specified by:
updateDatain interfacePamObserver- Overrides:
updateDatain classPamProcess
-
checkMatches
-
checkMatches
public boolean checkMatches(PamObservable o, PamDataUnit detection, long detectionUID, boolean isUpdate) Check this detection (or other type of data) to see if it matches with any of the generated sounds currently held in memory.- Parameters:
o-detection-detectionUID-isUpdate-- Returns:
-
getAllDetectors
- Returns:
- the allDetectors
-