Class ExampleDatasetProcessor
java.lang.Object
gda.factory.ConfigurableBase
gda.factory.FindableConfigurableBase
gda.device.detector.nexusprocessor.DatasetProcessorBase
gda.device.detector.nexusprocessor.ExampleDatasetProcessor
- All Implemented Interfaces:
DatasetProcessor,Configurable,Findable
Example DatasetProcessor that adds data to the NexusProvider Test implementation of INexusProviderDataSetProcessor.
Extends extraNames by 1 element, adds that value to the nx data and to the plottable data. The value increases by 1
for each call.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()Get the object name.Processes the given dataset, returning aGDANexusDetectorDatacontaining theINexusTrees nodes describing the datasets to be added to the nexus tree.Methods inherited from class gda.device.detector.nexusprocessor.DatasetProcessorBase
getExtraNames, getOutputFormat, isEnabled, setEnableMethods inherited from class gda.factory.FindableConfigurableBase
setNameMethods inherited from class gda.factory.ConfigurableBase
configure, isConfigureAtStartup, isConfigured, reconfigure, setConfiguredMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface gda.device.detector.nexusprocessor.DatasetProcessor
atScanEnd, atScanStart, stop
-
Constructor Details
-
ExampleDatasetProcessor
public ExampleDatasetProcessor()
-
-
Method Details
-
process
public GDANexusDetectorData process(String detName, String dataName, org.eclipse.january.dataset.Dataset dataset) throws Exception Description copied from interface:DatasetProcessorProcesses the given dataset, returning aGDANexusDetectorDatacontaining theINexusTrees nodes describing the datasets to be added to the nexus tree.- Parameters:
detName- name of detectordataName- name of dataset to processdataset- dataset to process- Returns:
- a
GDANexusDetectorDatawith t - Throws:
Exception
-
_getExtraNames
- Specified by:
_getExtraNamesin classDatasetProcessorBase
-
_getOutputFormat
- Specified by:
_getOutputFormatin classDatasetProcessorBase
-
getName
Description copied from interface:FindableGet the object name. Used by Castor to check if the object name has been set before calling theFindable.setName(String)method.- Specified by:
getNamein interfaceDatasetProcessor- Specified by:
getNamein interfaceFindable- Overrides:
getNamein classFindableConfigurableBase- Returns:
- a String containing the object name.
-