Package detectiongrouplocaliser
Class DetectionGroupProcess
java.lang.Object
PamguardMVC.PamProcess
detectiongrouplocaliser.DetectionGroupProcess
- All Implemented Interfaces:
 PamObserver,ProcessAnnotator
- 
Nested Class Summary
Nested Classes - 
Field Summary
Fields inherited from class PamguardMVC.PamProcess
outputDataBlocks, parentDataBlock, processName, sampleRate - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionbooleanaddAnnotation(OverlayMarker overlayMarker, OverlayMark overlayMark, DataAnnotationType anType, DetectionGroupDataUnit dgdu) Add an annotation to a detection group.voidaddToEvent(DetectionGroupSummary groupSummary, PamDataUnit superDet, boolean update) Add some detections to an existing eventvoidCalled whenever instructions to load more or less data are received.voidCheck the start and end times of every event against what's in the database.createNewDetectionGroup(DetectionGroupSummary groupSummary) Called when a new group is created.voiddeleteDetectionGroup(DetectionGroupDataUnit detectionGroupDataUnit) Delete an entire detection group and remove it's entry from the database.voidCalled from the PamControlled unit when a PamControlled unit is removed from the model.voidEdit a detection group - this means editing any editable annotations.detectiongrouplocaliser.DetectionGroupProcess.MarkObservervoidnotifyModelChanged(int changeType) 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.voidremoveSubDetections(DetectionGroupSummary groupSummary) Remove a load of detections from whatever group they happen to be in.protected voidCheck all the SQL Logging additions are set up correctly.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: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
 - 
notifyModelChanged
public void notifyModelChanged(int changeType) - Overrides:
 notifyModelChangedin classPamProcess
 - 
sortSQLLogging
protected void sortSQLLogging()Check all the SQL Logging additions are set up correctly. - 
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
 - 
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. 
 -