Package GPS
Class GpsDataUnit
java.lang.Object
PamguardMVC.PamDataUnit
GPS.GpsDataUnit
- All Implemented Interfaces:
Comparable
- Direct Known Subclasses:
AirgunDataUnit
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic GpsDataUnit
getAverage
(GpsDataUnit unit1, GpsDataUnit unit2) Get the average of two gps data units.double[]
gets the frequency limits from the DataUnitBaseData objectReturn an html formatted summary string describing the detection which can be used in tooltips anywhere in PAMGuard.void
setGpsData
(GpsData gpsData) Methods inherited from class PamguardMVC.PamDataUnit
addDataAnnotation, addSuperDetection, amplifyMeasuredAmplitudeByDB, amplifyMeasuredAmplitudeByLinear, calcSnapshotGeometry, clearOandAngles, clearUpdateCount, compareTo, findDataAnnotation, findDataAnnotation, freeData, getAbsBlockIndex, getAmplitudeDB, getAnnotationsSummaryString, getBasicData, getCalculatedAmlitudeDB, getChannelBitmap, getColourIndex, getDataAnnotation, getDatabaseIndex, getDatabaseUpdateOf, getDataUnitFileInformation, getDataUnitPopupMenu, getDurationInMilliseconds, getEndTimeInMilliseconds, getFrequencyOverlap, getHydrophoneBitmap, getHydrophoneHeading, getLastChangeTime, getLastSample, getLastUpdateTime, getLocalisation, getMeasuredAmplitude, getMeasuredAmplitudeType, getNoiseBackground, getNumDataAnnotations, getOriginLatLong, getParentDataBlock, getSampleDuration, getSampleDurationAsInt, getSeconds, getSequenceBitmap, getSequenceBitmapObject, getSignalExcess, getSignalSPL, getSnapshotGeometry, getStartSample, getSuperDetection, getSuperDetection, getSuperDetection, getSuperDetection, getSuperDetection, getSuperDetectionsCount, getSuperDetectionSyncronisation, getSuperId, getTimeDelaysSeconds, getTimeMilliseconds, getTimeNanoseconds, getTimeOverlap, getUID, getUpdateCount, isEmbryonic, isForceAmpRecalc, linAmplitudeToDB, removeDataAnnotation, removeDataAnnotation, removeSuperDetection, setAbsBlockIndex, setCalculatedAmlitudeDB, setChannelBitmap, setDatabaseIndex, setDatabaseUpdateOf, setDataUnitFileInformation, setDurationInMilliseconds, setEmbryonic, setForceAmpRecalc, setFrequency, setInfo, setLastUpdateTime, setLocalisation, setMeasuredAmpAndType, setMeasuredAmplitude, setMeasuredAmplitudeType, setNoiseBackground, setParentDataBlock, setSampleDuration, setSequenceBitmap, setSignalExcess, setSignalSPL, setSnapshotGeometry, setStartSample, setTimeDelaysSeconds, setTimeMilliseconds, setUID, setUniqueSuperDetection, sortOutputMaps, updateDataUnit
-
Constructor Details
-
GpsDataUnit
-
-
Method Details
-
getGpsData
- Returns:
- Returns the gpsData.
-
setGpsData
-
getAverage
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 unitunit2
- second data unit- Returns:
- average position, heading, etc.
-
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 classPamDataUnit
- Returns:
- summary string
-
getFrequency
public double[] getFrequency()Description copied from class:PamDataUnit
gets the frequency limits from the DataUnitBaseData object- Overrides:
getFrequency
in classPamDataUnit
- Returns:
-