Package GPS

Class GpsDataUnit

All Implemented Interfaces:
Comparable
Direct Known Subclasses:
AirgunDataUnit

public class GpsDataUnit extends PamDataUnit
  • Constructor Details

    • GpsDataUnit

      public GpsDataUnit(long timeMilliseconds, GpsData gpsData)
  • Method Details

    • getGpsData

      public GpsData getGpsData()
      Returns:
      Returns the gpsData.
    • setGpsData

      public void setGpsData(GpsData gpsData)
    • getAverage

      public static GpsDataUnit getAverage(GpsDataUnit unit1, GpsDataUnit unit2)
      Get the average of two gps data units. If one unit is null, then it simply returns the other one. If both are null, null is returned.
      Parameters:
      unit1 - first data unit
      unit2 - second data unit
      Returns:
      average position, heading, etc.
    • 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
      Returns:
      summary string
    • getFrequency

      public double[] getFrequency()
      Description copied from class: PamDataUnit
      gets the frequency limits from the DataUnitBaseData object
      Overrides:
      getFrequency in class PamDataUnit
      Returns: