Package d3

Class D3Control

All Implemented Interfaces:
OfflineDataStore, SettingsNameProvider

public class D3Control extends OfflineFileControl
  • Field Details

  • Constructor Details

    • D3Control

      public D3Control(String unitName)
  • Method Details

    • getOfflineFileType

      public String getOfflineFileType()
    • loadData

      public boolean loadData(PamDataBlock dataBlock, ArrayList<OfflineFileMapPoint> usedMapPoints, OfflineDataLoadInfo offlineDataLoadInfo, ViewLoadObserver loadObserver)
      Description copied from class: OfflineFileControl
      Load data from the files and pack into appropriate datablocks.
      Specified by:
      loadData in class OfflineFileControl
      Parameters:
      dataBlock - dataBlock for data
      usedMapPoints - list of mappoints which may have data in the load time
      loadObserver - update observer for loading data.
      Returns:
      true hopefully !
    • saveData

      public boolean saveData(PamDataBlock dataBlock)
      Description copied from interface: OfflineDataStore
      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.
    • getD3DataBlock

      public D3DataBlock getD3DataBlock()
      Returns:
      the d3DataBlock
    • findSensorInfo

      public D3SensorInfo findSensorInfo(int sensorId)
      Find sensor information corresponding to a specific id.
      Parameters:
      sensorId - integer sensor id
      Returns:
      sensor information.
    • findSensorInfo

      public D3SensorInfo findSensorInfo(String calName)
      Find sensor information corresponding to a specific id.
      Parameters:
      sensorId - integer sensor id
      Returns:
      sensor information.
    • findSensorIndex

      public int findSensorIndex(int sensorId)
      Find sensor information corresponding to a specific id.
      Parameters:
      sensorId - integer sensor id
      Returns:
      sensor index.
    • findSensorIndex

      public int findSensorIndex(String sensorName)
      Find a sensor by the name of it's cal field.
      Parameters:
      sensorName -
      Returns:
    • getD3SensorInfos

      public ArrayList<D3SensorInfo> getD3SensorInfos()
      Returns:
      the d3SensorInfos
    • getD3DataPlotProvider

      public D3DataPlotProvider getD3DataPlotProvider()
      Returns:
      the d3DataPlotProvider