Class RawDataOrder

java.lang.Object
detectionPlotFX.plots.RawDataOrder
Type Parameters:
D -

public abstract class RawDataOrder extends Object
Used to load data for any display in which raw data is required to be loaded for detections. This requires multi threading etc.
Author:
Jamie Macaulay
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    class 
    Observe the success of the data load
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor for the raw data order.
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract void
    dataLoadingFinished(double[] rawData)
    Called whenever the data
    detectionPlotFX.plots.RawDataOrder.RawObserver
    Get the raw data observer whihc handles loading of raw data
    double[]
    Get the raw data observer whihc handles loading of raw data
    void
    setRawData(double[] rawData, float sR, int channel, long dateStart)
    Manually set the raw data in the observer.
    void
    startRawDataLoad(PamDataUnit pamDetection, long buffer, int channel)
    Start the raw data loading on a new thread
    void
    startRawDataLoad(PamRawDataBlock rawDataBlock, long dataStart, long dataEnd, int channel)
    Start the raw data loading on a new thread

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RawDataOrder

      public RawDataOrder()
      Constructor for the raw data order.
  • Method Details

    • startRawDataLoad

      public void startRawDataLoad(PamDataUnit pamDetection, long buffer, int channel)
      Start the raw data loading on a new thread
      Parameters:
      pamDetection - - the pam detection
      buffer - - a buffer for the pam data unit.
    • startRawDataLoad

      public void startRawDataLoad(PamRawDataBlock rawDataBlock, long dataStart, long dataEnd, int channel)
      Start the raw data loading on a new thread
      Parameters:
      rawDataBlock - - the raw data block
      dataStart - - data strat
      dataEnd - - dtaa end
    • getRawDataObserver

      public detectionPlotFX.plots.RawDataOrder.RawObserver getRawDataObserver()
      Get the raw data observer whihc handles loading of raw data
      Returns:
      the raw data observer.
    • getRawDataOrder

      public double[] getRawDataOrder()
      Get the raw data observer whihc handles loading of raw data
      Returns:
      the raw data observer.
    • setRawData

      public void setRawData(double[] rawData, float sR, int channel, long dateStart)
      Manually set the raw data in the observer.
      Parameters:
      rawData - - the raw data to set
      sR - - the sample rate
      channel - - the channel
      datestart -
    • dataLoadingFinished

      public abstract void dataLoadingFinished(double[] rawData)
      Called whenever the data
      Parameters:
      rawData -