PamController
Interface OfflineDataStore

All Known Implementing Classes:
AcquisitionControl, BinaryStore, DBControlUnit, OfflineFileServer

public interface OfflineDataStore

Interface implemented by PamControlledUnits which are capable of reloading and restoring data when operating in Viewer mode.

Author:
Doug Gillespie

Method Summary
 void createOfflineDataMap(java.awt.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.
 java.lang.String getDataSourceName()
          Get the data source name
 boolean loadData(PamDataBlock dataBlock, long dataStart, long dataEnd)
          Load data for a given datablock between two time limits.
 boolean saveData(PamDataBlock dataBlock)
          Save data previously loaded from the store during offline viewing.
 

Method Detail

createOfflineDataMap

void createOfflineDataMap(java.awt.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

java.lang.String getDataSourceName()
Get the data source name

Returns:
data source name

loadData

boolean loadData(PamDataBlock dataBlock,
                 long dataStart,
                 long dataEnd)
Load data for a given datablock between two time limits.

Parameters:
dataBlock - datablock owner of the data
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.