Package org.scijava.module.process
Class AbstractPreprocessorPlugin
- java.lang.Object
-
- org.scijava.AbstractContextual
-
- org.scijava.module.process.AbstractPreprocessorPlugin
-
- All Implemented Interfaces:
Cancelable,Contextual,ModulePreprocessor,ModuleProcessor,PreprocessorPlugin,SciJavaPlugin
- Direct Known Subclasses:
AbstractSingleInputPreprocessor,ActiveDisplayPreprocessor,CheckInputsPreprocessor,DebugPreprocessor,DefaultValuePreprocessor,FileListPreprocessor,FilePreprocessor,GatewayPreprocessor,InitPreprocessor,LoadInputsPreprocessor,LoggerPreprocessor,SaveInputsPreprocessor,ServicePreprocessor,UIPreprocessor,ValidityPreprocessor
public abstract class AbstractPreprocessorPlugin extends AbstractContextual implements PreprocessorPlugin
Abstract base class for plugin preprocessors.- Author:
- Curtis Rueden
-
-
Constructor Summary
Constructors Constructor Description AbstractPreprocessorPlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcancel(String reason)Cancels the operation execution, with the given reason for doing so.StringgetCancelReason()Gets a message describing why the operation was canceled.booleanisCanceled()Gets whether the operation has been canceled.-
Methods inherited from class org.scijava.AbstractContextual
context, getContext
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.scijava.Contextual
context, getContext, setContext
-
Methods inherited from interface org.scijava.module.process.ModuleProcessor
process
-
-
-
-
Method Detail
-
isCanceled
public boolean isCanceled()
Description copied from interface:CancelableGets whether the operation has been canceled.- Specified by:
isCanceledin interfaceCancelable
-
cancel
public void cancel(String reason)
Description copied from interface:CancelableCancels the operation execution, with the given reason for doing so.This method merely sets the operation status to canceled; it cannot necessarily stop the operation itself. That is, it is the responsibility of each individual operation to check
Cancelable.isCanceled()in a timely manner during execution, and stop doing whatever it is doing if the flag has been tripped.- Specified by:
cancelin interfaceCancelable- Parameters:
reason- A message describing why the operation is being canceled.
-
getCancelReason
public String getCancelReason()
Description copied from interface:CancelableGets a message describing why the operation was canceled.- Specified by:
getCancelReasonin interfaceCancelable- Returns:
- The reason for cancelation, which may be null if no reason was given, or if the operation was not in fact canceled.
-
-