Package Array

Class StreamerDataBlock


public class StreamerDataBlock extends PamDataBlock<StreamerDataUnit>
  • Field Details

  • Constructor Details

  • 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<StreamerDataUnit>
    • forceClearAll

      public void forceClearAll()
      Used by DIFAR module to clear streamers in real-time
    • getPreceedingUnit

      public StreamerDataUnit 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<StreamerDataUnit>
      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<StreamerDataUnit>
      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<StreamerDataUnit>
      Parameters:
      pamDataUnit - dataunit to consider
      Returns:
      true if data should be logged.
    • replaceStreamerDataUnit

      public void replaceStreamerDataUnit(StreamerDataUnit oldUnit, StreamerDataUnit newUnit)
    • loadViewerData

      public boolean loadViewerData(OfflineDataLoadInfo offlineDataLoadInfo, ViewLoadObserver loadObserver)
      Description copied from class: PamDataBlock
      Instruction from the viewer scroll manager to load new data.
      Overrides:
      loadViewerData in class PamDataBlock<StreamerDataUnit>
      Parameters:
      offlineDataLoadInfo - - the load object which contains all info on the data to be loaded.
      loadObserver - - the load observer. Can be used as a callback for load progress.