Interface DatasetProcessor
- All Known Implementing Classes:
DatasetFitter,DatasetPlotter,DatasetProcessorBase,DatasetStats,ExampleDatasetProcessor,ExcaliburNDArraySimulatorParameterReader,NormalisingRegionProcessor,RoiStatsProcessor
public interface DatasetProcessor
interface for processing a dataset. Process method returns
ProcessorResults if extraNames or
outputFormat changes that inform observers-
Method Summary
Modifier and TypeMethodDescriptiondefault voiddefault voidgetName()booleanProcesses the given dataset, returning aGDANexusDetectorDatacontaining theINexusTrees nodes describing the datasets to be added to the nexus tree.voidsetEnable(boolean enable) default voidstop()
-
Method Details
-
getName
String getName()- Returns:
- the name of the processor
-
process
GDANexusDetectorData process(String detectorName, String dataName, org.eclipse.january.dataset.Dataset dataset) throws Exception Processes the given dataset, returning aGDANexusDetectorDatacontaining theINexusTrees nodes describing the datasets to be added to the nexus tree.- Parameters:
detectorName- name of detectordataName- name of dataset to processdataset- dataset to process- Returns:
- a
GDANexusDetectorDatawith t - Throws:
Exception
-
getExtraNames
Collection<String> getExtraNames()- Returns:
- the names of the datasets to be added
-
getOutputFormat
Collection<String> getOutputFormat()- Returns:
- output formats for the datasets to be added
-
isEnabled
boolean isEnabled()- Returns:
trueif this processor is enabled,falseotherwise
-
setEnable
void setEnable(boolean enable) -
atScanStart
default void atScanStart() -
atScanEnd
default void atScanEnd() -
stop
default void stop()
-