Class DataWrittenOperation

All Implemented Interfaces:
IOperation<DataWrittenModel,OperationData>

public class DataWrittenOperation extends AbstractOperation<DataWrittenModel,OperationData>
  • Constructor Details

    • DataWrittenOperation

      public DataWrittenOperation()
  • Method Details

    • getId

      public String getId()
      Returns:
      The unique id for this operation.
    • init

      public void init()
      Description copied from interface: IOperation
      Called on each operation before a new file is processed
      Specified by:
      init in interface IOperation<DataWrittenModel,OperationData>
      Overrides:
      init in class AbstractOperationBase<DataWrittenModel,OperationData>
    • process

      protected OperationData process(org.eclipse.january.dataset.IDataset input, org.eclipse.january.IMonitor monitor) throws OperationException
      Specified by:
      process in class AbstractOperation<DataWrittenModel,OperationData>
      Throws:
      OperationException
    • getInputRank

      public OperationRank getInputRank()
      Description copied from interface: IOperation
      Gets 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

      public OperationRank getOutputRank()
      Description copied from interface: IOperation
      Gets 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)
    • getName

      public String getName()
      Description copied from interface: IOperation
      The 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:
      getName in interface IOperation<DataWrittenModel,OperationData>
      Overrides:
      getName in class AbstractOperationBase<DataWrittenModel,OperationData>
      Returns:
      OperationType