Class FunctionOperation
java.lang.Object
org.eclipse.dawnsci.analysis.dataset.operations.AbstractOperationBase<FunctionModel,OperationData>
uk.ac.diamond.scisoft.analysis.processing.operations.FunctionOperation
- All Implemented Interfaces:
IOperation<FunctionModel,OperationData>
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.dawnsci.analysis.dataset.operations.AbstractOperationBase
AbstractOperationBase.OperationComparator -
Field Summary
Fields inherited from class org.eclipse.dawnsci.analysis.dataset.operations.AbstractOperationBase
model -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute(org.eclipse.january.dataset.IDataset slice, org.eclipse.january.IMonitor monitor) The execute method operates on the data set last send via setDataset() and the information specific to this operation provided and returns the processed data in the form of an IDataset Multiple setData(..) and execute methods may be called.getId()Gets the rank of input data for the operations algorithm.getName()The operation name.Gets the rank of output data for the operations algorithm.voidsetModel(FunctionModel model) The list of parameters are specific to the operation we are doing.Methods inherited from class org.eclipse.dawnsci.analysis.dataset.operations.AbstractOperationBase
addConfiguredField, copyMetadata, copyMetadata, dispose, equals, getDescription, getFirstAxes, getFirstDiffractionMetadata, getFirstMask, getModel, getModelClass, getOriginalDataDimensions, getSliceSeriesMetadata, hashCode, init, isPassUnmodifiedData, isStoreOutput, setConfiguredFields, setDescription, setName, setPassUnmodifiedData, setStoreOutput, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.dawnsci.analysis.api.processing.IOperation
destroy, getFilenameSuffix
-
Constructor Details
-
FunctionOperation
public FunctionOperation()
-
-
Method Details
-
getId
- Returns:
- The unique id for this operation.
-
getName
Description copied from interface:IOperationThe operation name. The operation service allows operations to be found by name which can be used to determine available operations. This is usually set by the extension point, so there is no need to implement this if extending AbstractOperation- Specified by:
getNamein interfaceIOperation<FunctionModel,OperationData> - Overrides:
getNamein classAbstractOperationBase<FunctionModel,OperationData> - Returns:
- OperationType
-
execute
public OperationData execute(org.eclipse.january.dataset.IDataset slice, org.eclipse.january.IMonitor monitor) throws OperationException Description copied from interface:IOperationThe execute method operates on the data set last send via setDataset() and the information specific to this operation provided and returns the processed data in the form of an IDataset Multiple setData(..) and execute methods may be called. In addition execute() may be called multiple times for operations such as differential. Each time operating on the result of the last execution.- Specified by:
executein interfaceIOperation<FunctionModel,OperationData> - Specified by:
executein classAbstractOperationBase<FunctionModel,OperationData> - Returns:
- dataset which is the result of this operation.
- Throws:
OperationException
-
setModel
Description copied from interface:IOperationThe list of parameters are specific to the operation we are doing. NOTE parameters should not be data contained in IRichDataset, like Datasets, Metadata and Regions. Parameter examples are: double values for tolerances, xml configurations, JSON strings etc.- Specified by:
setModelin interfaceIOperation<FunctionModel,OperationData> - Overrides:
setModelin classAbstractOperationBase<FunctionModel,OperationData> - Parameters:
model-
-
getInputRank
Description copied from interface:IOperationGets the rank of input data for the operations algorithm. You might be iterating 4D data but when this operation is run on a slice of it, it must be done with a fixed input rank.- Returns:
- rank of slice data which we accept. For instance for integration we input 2(image) and output 1(integration)
-
getOutputRank
Description copied from interface:IOperationGets the rank of output data for the operations algorithm. You might be iterating 4D data but when this operation is run on a slice of it, it must be done with a fixed input rank and this input will result in a fixed output rank.- Returns:
- rank of output data which we return. For instance for integration we input 2(image) and output 1(integration)
-