Class DetectionGroupProcess

java.lang.Object
PamguardMVC.PamProcess
detectiongrouplocaliser.DetectionGroupProcess
All Implemented Interfaces:
PamObserver, ProcessAnnotator

public class DetectionGroupProcess extends PamProcess
  • Constructor Details

  • 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 class PamProcess
    • notifyModelChanged

      public void notifyModelChanged(int changeType)
      Overrides:
      notifyModelChanged in class PamProcess
    • 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
    • getDataSelector

      public DetectionGroupProcess.DataSelector getDataSelector()
      Returns:
      the dataSelector
    • getDetectionGroupDataBlock

      public DetectionGroupDataBlock getDetectionGroupDataBlock()
      Returns:
      the detectionGroupDataBlock
    • getDetectionGroupControl

      public DetectionGroupControl getDetectionGroupControl()
      Returns:
      the detectionGroupControl
    • getDetectionGroupLogging

      public DetectionGroupLogging getDetectionGroupLogging()
      Returns:
      the detectionGroupLogging
    • getMarkObserver

      public detectiongrouplocaliser.DetectionGroupProcess.MarkObserver getMarkObserver()
      Returns:
      the markObserver
    • getEventBuilderFunctions

      public EventBuilderFunctions getEventBuilderFunctions()
      Returns:
      the eventBuilderFunctions
    • getAnnotationHandler

      public GroupAnnotationHandler 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

      public DetectionGroupDataUnit createNewDetectionGroup(DetectionGroupSummary groupSummary)
      Called when a new group is created.
      Parameters:
      groupSummary -
    • addToEvent

      public void addToEvent(DetectionGroupSummary groupSummary, PamDataUnit superDet, boolean update)
      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

      public void deleteDetectionGroup(DetectionGroupDataUnit detectionGroupDataUnit)
      Delete an entire detection group and remove it's entry from the database.
      Parameters:
      existingSuperDet -
    • removeSubDetections

      public void removeSubDetections(DetectionGroupSummary groupSummary)
      Remove a load of detections from whatever group they happen to be in.
      Parameters:
      groupSummary -
    • editDetectionGroup

      public void editDetectionGroup(DetectionGroupDataUnit dgdu)
      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.