Package detectionPlotFX.plots
Class RawDataOrder
java.lang.Object
detectionPlotFX.plots.RawDataOrder
- Type Parameters:
D-
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 ClassesModifier and TypeClassDescriptionclassObserve the success of the data load -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voiddataLoadingFinished(double[] rawData) Called whenever the datadetectionPlotFX.plots.RawDataOrder.RawObserverGet the raw data observer whihc handles loading of raw datadouble[]Get the raw data observer whihc handles loading of raw datavoidsetRawData(double[] rawData, float sR, int channel, long dateStart) Manually set the raw data in the observer.voidstartRawDataLoad(PamDataUnit pamDetection, long buffer, int channel) Start the raw data loading on a new threadvoidstartRawDataLoad(PamRawDataBlock rawDataBlock, long dataStart, long dataEnd, int channel) Start the raw data loading on a new thread
-
Constructor Details
-
RawDataOrder
public RawDataOrder()Constructor for the raw data order.
-
-
Method Details
-
startRawDataLoad
Start the raw data loading on a new thread- Parameters:
pamDetection- - the pam detectionbuffer- - 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 blockdataStart- - data stratdataEnd- - 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 setsR- - the sample ratechannel- - the channeldatestart-
-
dataLoadingFinished
public abstract void dataLoadingFinished(double[] rawData) Called whenever the data- Parameters:
rawData-
-