Class TrackedGroupProcess

java.lang.Object
PamguardMVC.PamProcess
difar.trackedGroups.TrackedGroupProcess
All Implemented Interfaces:
PamObserver, ProcessAnnotator

public class TrackedGroupProcess extends PamProcess
Subscribe to DifarDataBlocks and assign new bearings to groups of whales
Author:
Brian Miller
  • Constructor Details

  • Method Details

    • 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
    • getTrackedGroups

      public TrackedGroupDataBlock getTrackedGroups()
    • newData

      public void newData(PamObservable o, PamDataUnit dataUnit)
      Check if a group already exists, and if so add the data to that group. Otherwise create a new group.
      Overrides:
      newData in class PamProcess
    • getDifarRangeInfo

      public TrackedGroupCrossingInfo getDifarRangeInfo(TrackedGroupDataUnit trackedGroupDataUnit)
      Called just before a difar unit is stored. Looks at other channels that have recently had a data unit stored and decides whether or not they are likely to be the same vocalisation. If they are, calculate a crossed bearing to them both. If > 2 channels do some kind of optimised fit.
      Parameters:
      trackedGroupDataUnit -
      Returns:
      information about the range (will already have been put into affected units)