Package dataGram

Class DatagramManager

java.lang.Object
dataGram.DatagramManager

public class DatagramManager extends Object
  • Constructor Details

    • DatagramManager

      public DatagramManager(OfflineDataStore offlineDataStore)
      Parameters:
      binaryOfflineDataMap -
  • Method Details

    • getDataBlocks

      public ArrayList<PamDataBlock> getDataBlocks()
      Returns:
      a list of data blocks which have a DatagramProvider
    • checkAllDatagrams

      public ArrayList<PamDataBlock> checkAllDatagrams()
      Returns:
      a list of datablocks which need their datagrams updated.
    • showDatagramDialog

      public boolean showDatagramDialog(boolean firstCall)
    • updateDatagrams

      public void updateDatagrams()
      Update all datagrams (which need it)
    • updateDatagrams

      public void updateDatagrams(ArrayList<PamDataBlock> updateList)
      update a list of datagrams. This should be done in a worker thread ...
      Parameters:
      updateList -
    • getStatus

      public boolean getStatus()
      Get true if the datagram worker is running.
      Returns:
    • showProgress

      public void showProgress(DatagramProgress datagramProgress, dataGram.DatagramManager.DatagramCreator datagramCreator)
    • getDatagramSettings

      public DatagramSettings getDatagramSettings()
      Returns:
      the datagramSettings
    • setDatagramSettings

      public void setDatagramSettings(DatagramSettings datagramSettings)
      Parameters:
      datagramSettings - the datagramSettings to set
    • getMinAndMax

      public double[] getMinAndMax(PamDataBlock dataBlock, boolean includeZeros)
      Get min and max values for an entire datagram.
      Parameters:
      dataBlock - datablock owning datagram
      includeZeros - include data that have zero value - often a good idea to exclude these if your calculating log scale limits
      Returns:
      2 el array of min and max values.
    • getImageData

      public DatagramImageData getImageData(PamDataBlock dataBlock, long startTimeMillis, long endTimeMillis, int maxPixels)
      Create the raw data to go into a dataGram. Fill with NaN wherever data are unavailable.
      Parameters:
      dataBlock -
      endTimeMillis -
      maxPixels -
      startTimeMills -
      Returns:
      a 2D array of double precision data to go into an image.