Class BinaryOfflineDataMap

java.lang.Object
dataMap.OfflineDataMap<BinaryOfflineDataMapPoint>
binaryFileStorage.BinaryOfflineDataMap

public class BinaryOfflineDataMap extends OfflineDataMap<BinaryOfflineDataMapPoint>
A binary offline data map is a datamap for a single data stream (i.e. the output of a PamDataBlock).
For each binary file, one map point will be created in a list within the datamap which gives basic information about the data within that time period. The data include the headers and footers read from either the data file or the index file and possibly also a Datagram - which gives more detail of the data than the simple counts of detections.
Individual modules may also override the data map points within the datamap in order to provide more detailed information, such as numbers of clicks splitup by species.
Author:
Doug Gillespie
  • Constructor Details

  • Method Details

    • getFileList

      protected ArrayList<BinaryOfflineDataMapPoint> getFileList(long dataStart, long dataEnd)
      Get a list of map points which have data between the two times.
      Parameters:
      dataStart - start time in milliseconds
      dataEnd - end time in milliseconds
      Returns:
      Array list of map points
    • findMapPoint

      public BinaryOfflineDataMapPoint findMapPoint(File file)
      Finds the mapPoint of a specific binary file
      Parameters:
      file -
      Returns:
    • removeMapPoint

      public int removeMapPoint(File file)
      Finds the mapPoint of a specific binary file
      Parameters:
      file -
      Returns:
    • newPamDataUnit

      public BinaryOfflineDataMapPoint newPamDataUnit(PamDataUnit pamDataUnit)
      Description copied from class: OfflineDataMap
      Called when new (not reloaded) data are added to a datablock so that the data map can update.
      Overrides:
      newPamDataUnit in class OfflineDataMap<BinaryOfflineDataMapPoint>
      Parameters:
      pamDataUnit -
      Returns:
      current data map point