Package detectiongrouplocaliser
Class DetectionGroupProcess
java.lang.Object
PamguardMVC.PamProcess
detectiongrouplocaliser.DetectionGroupProcess
- All Implemented Interfaces:
PamObserver
,ProcessAnnotator
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addAnnotation
(OverlayMarker overlayMarker, OverlayMark overlayMark, DataAnnotationType anType, DetectionGroupDataUnit dgdu) Add an annotation to a detection group.void
addToEvent
(DetectionGroupSummary groupSummary, PamDataUnit superDet, boolean update) Add some detections to an existing eventvoid
Called whenever instructions to load more or less data are received.void
Check the start and end times of every event against what's in the database.createNewDetectionGroup
(DetectionGroupSummary groupSummary) Called when a new group is created.void
deleteDetectionGroup
(DetectionGroupDataUnit detectionGroupDataUnit) Delete an entire detection group and remove it's entry from the database.void
Called from the PamControlled unit when a PamControlled unit is removed from the model.void
Edit a detection group - this means editing any editable annotations.detectiongrouplocaliser.DetectionGroupProcess.MarkObserver
void
notifyModelChanged
(int changeType) 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
removeSubDetections
(DetectionGroupSummary groupSummary) Remove a load of detections from whatever group they happen to be in.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, getProcessCheck, getProcessName, getRawSourceDataBlock, getRawSourceDataBlock, getRequiredDataHistory, getSampleRate, getSourceDataBlock, getSourceProcess, hasOutputDatablock, isCanMultiThread, isExternalProcess, isMultiplex, makePamProcess, masterClockUpdate, newData, noteNewSettings, prepareProcess, prepareProcessOK, processNewBuoyData, receiveSourceNotification, relMillisecondsToSamples, relSamplesToMilliseconds, removeAllDataBlocks, removeAllMultiPlexDataBlocks, removeMultiPlexDataBlock, removeObservable, removeOutputDatablock, resetDataBlocks, saveViewerData, setCanMultiThread, setExternalProcess, setMultiplex, setParentDataBlock, setParentDataBlock, setProcessCheck, setProcessName, setSampleRate, setupProcess, toString, updateData
-
Constructor Details
-
DetectionGroupProcess
-
-
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
-
notifyModelChanged
public void notifyModelChanged(int changeType) - Overrides:
notifyModelChanged
in classPamProcess
-
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
-
getDataSelector
- Returns:
- the dataSelector
-
getDetectionGroupDataBlock
- Returns:
- the detectionGroupDataBlock
-
getDetectionGroupControl
- Returns:
- the detectionGroupControl
-
getDetectionGroupLogging
- Returns:
- the detectionGroupLogging
-
getMarkObserver
public detectiongrouplocaliser.DetectionGroupProcess.MarkObserver getMarkObserver()- Returns:
- the markObserver
-
getEventBuilderFunctions
- Returns:
- the eventBuilderFunctions
-
getAnnotationHandler
- Returns:
- the annotationHandler
-
addAnnotation
public boolean addAnnotation(OverlayMarker overlayMarker, OverlayMark overlayMark, DataAnnotationType anType, DetectionGroupDataUnit dgdu) Add an annotation to a detection group.- Parameters:
overlayMarker
-overlayMark
-anType
-dgdu
-- Returns:
-
createNewDetectionGroup
Called when a new group is created.- Parameters:
groupSummary
-
-
addToEvent
Add some detections to an existing event- Parameters:
groupSummary
-superDet
-update
- true if need to update data unit in datablock. Make sure it's false when called from newEvent.
-
deleteDetectionGroup
Delete an entire detection group and remove it's entry from the database.- Parameters:
existingSuperDet
-
-
removeSubDetections
Remove a load of detections from whatever group they happen to be in.- Parameters:
groupSummary
-
-
editDetectionGroup
Edit a detection group - this means editing any editable annotations.- Parameters:
dgdu
-
-
changeOfflineLoadSelection
public void changeOfflineLoadSelection()Called whenever instructions to load more or less data are received. -
checkDataIntegrity
public void checkDataIntegrity()Check the start and end times of every event against what's in the database.
-