Class CalibrationDataBlock


public class CalibrationDataBlock extends PamDataBlock<CalibrationDataUnit>
  • Field Details

  • Constructor Details

    • CalibrationDataBlock

      public CalibrationDataBlock(DifarProcess difarProcess)
  • Method Details

    • clearAll

      public void clearAll()
      Description copied from class: PamDataBlock
      Clears all PamDataUnits from memory

      In viewer mode, data are also re-saved.

      Overrides:
      clearAll in class PamDataBlock<CalibrationDataUnit>
    • loadViewerData

      public boolean loadViewerData(long dataStart, long dataEnd, ViewLoadObserver loadObserver)
      Description copied from class: PamDataBlock
      Instruction from the viewer scroll manager to load new data.

      This just calls through to loadViewerData(OfflineDataLoadInfo ...) so this should not be overridden. Override the other function instead.

      Overrides:
      loadViewerData in class PamDataBlock<CalibrationDataUnit>
      Parameters:
      dataStart - data start time in millis
      dataEnd - data end time in millis.
      loadObserver - - the load obsever. Can be used as a callback for load progress.
    • getPreceedingUnit

      public CalibrationDataUnit getPreceedingUnit(long startTime, int channelMap)
      Description copied from class: PamDataBlock
      Simple function to find the data unit at or before the given start time that has a given channel bitmap
      Overrides:
      getPreceedingUnit in class PamDataBlock<CalibrationDataUnit>
      Parameters:
      startTime - search time in milliseconds
      channelMap - Channel bitmap
      Returns:
      data unit at or following the given time.
    • getNumRequiredBeforeLoadTime

      public int getNumRequiredBeforeLoadTime()
      Description copied from class: PamDataBlock
      Get the number of pam data units that are required prior to the load times that get sent to loadViewerData. This can be used for things like hydrophone data where it may be necessary to load up a few earlier points to complete a trackline, etc.
      Overrides:
      getNumRequiredBeforeLoadTime in class PamDataBlock<CalibrationDataUnit>
      Returns:
      number of units required.
    • getShouldLog

      public boolean getShouldLog(PamDataUnit pamDataUnit)
      Description copied from class: PamDataBlock
      Should log the data unit to the database ?
      Overrides:
      getShouldLog in class PamDataBlock<CalibrationDataUnit>
      Parameters:
      pamDataUnit - dataunit to consider
      Returns:
      true if data should be logged.