Class FrameMathsOperation<T extends SelectedFramesModel>
java.lang.Object
org.eclipse.dawnsci.analysis.dataset.operations.AbstractOperationBase<T,OperationData>
org.eclipse.dawnsci.analysis.dataset.operations.AbstractOperation<T,OperationData>
uk.ac.diamond.scisoft.analysis.processing.operations.externaldata.FrameMathsOperation<T>
- All Implemented Interfaces:
IOperation<T,OperationData>
- Direct Known Subclasses:
AbstractExternalFrameOperation,AbstractInternalFrameOperation,SubtractCalibratedWithProcessing,SubtractCurrentDataOperation,SubtractInternalStringExternalData,SubtractWithProcessing
public abstract class FrameMathsOperation<T extends SelectedFramesModel>
extends AbstractOperation<T,OperationData>
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.dawnsci.analysis.dataset.operations.AbstractOperationBase
AbstractOperationBase.OperationComparator -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.eclipse.january.dataset.Datasetprotected PropertyChangeListenerFields inherited from class org.eclipse.dawnsci.analysis.dataset.operations.AbstractOperationBase
model -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract org.eclipse.january.dataset.DatasetgetData(org.eclipse.january.dataset.IDataset ds) Gets the rank of input data for the operations algorithm.Gets the rank of output data for the operations algorithm.protected abstract org.eclipse.january.dataset.DatasetperformOperation(org.eclipse.january.dataset.Dataset input, org.eclipse.january.dataset.Dataset other) protected OperationDataprocess(org.eclipse.january.dataset.IDataset input, org.eclipse.january.IMonitor monitor) voidThe list of parameters are specific to the operation we are doing.Methods inherited from class org.eclipse.dawnsci.analysis.dataset.operations.AbstractOperation
executeMethods inherited from class org.eclipse.dawnsci.analysis.dataset.operations.AbstractOperationBase
addConfiguredField, copyMetadata, copyMetadata, dispose, equals, getDescription, getFirstAxes, getFirstDiffractionMetadata, getFirstMask, getModel, getModelClass, getName, 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, getId
-
Field Details
-
data
protected org.eclipse.january.dataset.Dataset data -
listener
-
-
Constructor Details
-
FrameMathsOperation
public FrameMathsOperation()
-
-
Method Details
-
getData
protected abstract org.eclipse.january.dataset.Dataset getData(org.eclipse.january.dataset.IDataset ds) -
performOperation
protected abstract org.eclipse.january.dataset.Dataset performOperation(org.eclipse.january.dataset.Dataset input, org.eclipse.january.dataset.Dataset other) -
process
protected OperationData process(org.eclipse.january.dataset.IDataset input, org.eclipse.january.IMonitor monitor) throws OperationException - Specified by:
processin classAbstractOperation<T extends SelectedFramesModel,OperationData> - 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<T extends SelectedFramesModel,OperationData> - Overrides:
setModelin classAbstractOperationBase<T extends SelectedFramesModel,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)
-