Package PamController

Interface OfflineDataStore

All Known Subinterfaces:
DataOutputStore, OfflineFileDataStore
All Known Implementing Classes:
AcquisitionControl, BeamformControl, BinaryStore, CPODControl, D3Control, DBControlUnit, DecimatorControl, OfflineFileControl, OfflineFileServer, OfflineWavFileServer, RonaOfflineFileServer, SecondaryBinaryStore, STAcquisitionControl

public interface OfflineDataStore
Interface implemented by PamControlledUnits which are capable of reloading and restoring data when operating in Viewer mode.
Author:
Doug Gillespie
  • Method Details

    • createOfflineDataMap

      void createOfflineDataMap(Window parentFrame)
      Create a basic map of the data including first and last times and some kind of data/unit time count plus ideally some kind of start and stop time list of where there are gaps in the data.
    • getDataSourceName

      String getDataSourceName()
      Get the data source name
      Returns:
      data source name
    • getDataLocation

      String getDataLocation()
      Get the data location. This may be a specific file, or might be a folder if data are in many files, a URI, etc.
      Returns:
      store locations
    • loadData

      boolean loadData(PamDataBlock dataBlock, OfflineDataLoadInfo offlineDataLoadInfo, ViewLoadObserver loadObserver)
      Load data for a given datablock between two time limits.
      Parameters:
      dataBlock - datablock owner of the data
      loadObserver -
      dataStart - start time in milliseconds
      dataEnd - end time in milliseconds
      Returns:
      true if load successful.
    • saveData

      boolean saveData(PamDataBlock dataBlock)
      Save data previously loaded from the store during offline viewing.
      Parameters:
      dataBlock - datablock owner of the data
      Returns:
      true if saved or save not needed. False if an error prevents saving.
    • rewriteIndexFile

      boolean rewriteIndexFile(PamDataBlock dataBlock, OfflineDataMapPoint dmp)
      Moved this function over from binary data store. Many storage systems may not be able to do this, but some might !
      Parameters:
      dataBlock -
      dmp -
      Returns:
    • getDatagramManager

      DatagramManager getDatagramManager()
      Returns:
      the datagramManager