Class TrackedGroupDataUnit

java.lang.Object
PamguardMVC.PamDataUnit<PamDataUnit,SuperDetection>
difar.trackedGroups.TrackedGroupDataUnit
All Implemented Interfaces:
Comparable<PamDataUnit>, PamDetection, AcousticDataUnit

public class TrackedGroupDataUnit extends PamDataUnit<PamDataUnit,SuperDetection> implements PamDetection
Author:
Brian Miller Each data unit represents a group of whales tracked via the DIFAR module. The data unit will contain summary information regarding the track, such as first detection time, total number of detections average bearing, most recent bearing.
  • Constructor Details

    • TrackedGroupDataUnit

      public TrackedGroupDataUnit(DifarDataUnit difarDataUnit)
      Create a new trackedGroup data unit from an existing difarDataUnit
      Parameters:
      difarDataUnit -
    • TrackedGroupDataUnit

      public TrackedGroupDataUnit(long timeMilliseconds, int channelBitmap, String groupName, double firstBearing, double lastBearing, long lastDetectionTime, double meanBearing, double bearingSTD, int n)
      Create a new TrackedGroupDataUnit from the SQL database
      Parameters:
      bearingSTD -
      difarDataUnit -
  • Method Details

    • addData

      public void addData(DifarDataUnit difarDataUnit)
      Add a new bearing to this group. Check if its the most recent and update accordingly. Also, recompute the mean bearing.
      Parameters:
      difarDataUnit -
    • updateMostRecentBearing

      public void updateMostRecentBearing(DifarDataUnit difarDataUnit)
    • getSummaryString

      public String getSummaryString()
      Description copied from class: PamDataUnit
      Return an html formatted summary string describing the detection which can be used in tooltips anywhere in PAMGuard.
      Overrides:
      getSummaryString in class PamDataUnit<PamDataUnit,SuperDetection>
      Returns:
      summary string
    • getGroupName

      public String getGroupName()
    • getBuoyName

      public String getBuoyName()
    • getFirstDetectionTime

      public long getFirstDetectionTime()
    • setFirstDetectionTime

      public void setFirstDetectionTime(long timeMillis)
    • getMostRecentDetectionTime

      public long getMostRecentDetectionTime()
      The time of the most recent bearing to this group
      Returns:
    • getMostRecentBearing

      public double getMostRecentBearing()
    • getMeanBearing

      public double getMeanBearing()
      The circular mean of all of the bearings for this group
      Returns:
    • getBearingSTD

      public double getBearingSTD()
    • getBuoyStartTime

      public long getBuoyStartTime()
    • getNumBearings

      public int getNumBearings()
      Returns:
      The total number of bearings for this group on this sonobuoy
    • getDifarCrossing

      public TrackedGroupCrossingInfo getDifarCrossing()
    • setCrossing

      public void setCrossing(TrackedGroupCrossingInfo crossInfo)