Package difar.trackedGroups
Class 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.
 
- 
Field Summary
Fields inherited from class PamguardMVC.PamDataUnit
absBlockIndex, localisation - 
Constructor Summary
ConstructorsConstructorDescriptionTrackedGroupDataUnit(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 databaseTrackedGroupDataUnit(DifarDataUnit difarDataUnit) Create a new trackedGroup data unit from an existing difarDataUnit - 
Method Summary
Modifier and TypeMethodDescriptionvoidaddData(DifarDataUnit difarDataUnit) Add a new bearing to this group.doublelonglongdoubleThe circular mean of all of the bearings for this groupdoublelongThe time of the most recent bearing to this groupintReturn an html formatted summary string describing the detection which can be used in tooltips anywhere in PAMGuard.voidsetCrossing(TrackedGroupCrossingInfo crossInfo) voidsetFirstDetectionTime(long timeMillis) voidupdateMostRecentBearing(DifarDataUnit difarDataUnit) 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, getFrequency, getFrequencyOverlap, getGpsPosition, 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
- 
TrackedGroupDataUnit
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
Add a new bearing to this group. Check if its the most recent and update accordingly. Also, recompute the mean bearing.- Parameters:
 difarDataUnit-
 - 
updateMostRecentBearing
 - 
getSummaryString
Description copied from class:PamDataUnitReturn an html formatted summary string describing the detection which can be used in tooltips anywhere in PAMGuard.- Overrides:
 getSummaryStringin classPamDataUnit<PamDataUnit,SuperDetection> - Returns:
 - summary string
 
 - 
getGroupName
 - 
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
 - 
setCrossing
 
 -