Class ConvertNamedChannels<T extends NamedChannelsInput, S, U extends InputFromManager>
Object
AnchorBean<Task<T, SharedStateRememberConverted<U,S>>>
Task<T, SharedStateRememberConverted<U,S>>
ConvertNamedChannels<T,S,U>
- Type Parameters:
T- the named-channels-input we expect to receiveS- shared-state of the taskU- the named-channels-input the delegate task contains
- All Implemented Interfaces:
ReplaceTask<U,S>
public class ConvertNamedChannels<T extends NamedChannelsInput, S, U extends InputFromManager>
extends Task<T, SharedStateRememberConverted<U,S>>
implements ReplaceTask<U,S>
Converts
NamedChannelsInput to a variety of others to match a delegate task.
The other types, to which a NamedChannelsInput will be converted are:
MultiInputStackSequenceInputFileWithDirectoryInputImageMetadataInput
Note that the presence of ReplaceTask gives special behavior to this task in the
JobProcessor.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterAllJobsAreExecuted(SharedStateRememberConverted<U, S> sharedState, InputOutputContext context) beforeAnyJobIsExecuted(Outputter outputter, ConcurrencyPlan concurrencyPlan, List<T> inputs, ParametersExperiment parameters) OutputEnabledMutablevoiddoJobOnInput(InputBound<T, SharedStateRememberConverted<U, S>> inputBound) StackReaderSupplies to theimageMetadataReaderto use, if no other reader is specified.ImageMetadataReaderHow to read theImageMetadatafrom the file-system.getTask()The underlying task that will be called, perhaps with a different input-type.booleanInputTypesExpectedvoidreplaceTask(Task<U, S> taskToReplace) voidsetDefaultStackReaderForMetadata(StackReader defaultStackReaderForMetadata) Supplies to theimageMetadataReaderto use, if no other reader is specified.voidsetImageMetadataReader(ImageMetadataReader imageMetadataReader) How to read theImageMetadatafrom the file-system.voidThe underlying task that will be called, perhaps with a different input-type.Methods inherited from class org.anchoranalysis.experiment.bean.task.Task
executeJob, isInputCompatibleWithMethods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
ConvertNamedChannels
public ConvertNamedChannels()
-
-
Method Details
-
beforeAnyJobIsExecuted
public SharedStateRememberConverted<U,S> beforeAnyJobIsExecuted(Outputter outputter, ConcurrencyPlan concurrencyPlan, List<T> inputs, ParametersExperiment parameters) throws ExperimentExecutionException - Specified by:
beforeAnyJobIsExecutedin classTask<T extends NamedChannelsInput, SharedStateRememberConverted<U extends InputFromManager, S>>- Throws:
ExperimentExecutionException
-
doJobOnInput
public void doJobOnInput(InputBound<T, SharedStateRememberConverted<U, S>> inputBound) throws JobExecutionException- Specified by:
doJobOnInputin classTask<T extends NamedChannelsInput, SharedStateRememberConverted<U extends InputFromManager, S>>- Throws:
JobExecutionException
-
inputTypesExpected
public InputTypesExpected inputTypesExpected()- Specified by:
inputTypesExpectedin classTask<T extends NamedChannelsInput, SharedStateRememberConverted<U extends InputFromManager, S>>
-
hasVeryQuickPerInputExecution
public boolean hasVeryQuickPerInputExecution()- Specified by:
hasVeryQuickPerInputExecutionin classTask<T extends NamedChannelsInput, SharedStateRememberConverted<U extends InputFromManager, S>>
-
replaceTask
-
defaultOutputs
public OutputEnabledMutable defaultOutputs()- Overrides:
defaultOutputsin classTask<T extends NamedChannelsInput, SharedStateRememberConverted<U extends InputFromManager, S>>
-
getTask
-
setTask
-
getImageMetadataReader
public ImageMetadataReader getImageMetadataReader()How to read theImageMetadatafrom the file-system. -
setImageMetadataReader
public void setImageMetadataReader(ImageMetadataReader imageMetadataReader) How to read theImageMetadatafrom the file-system. -
getDefaultStackReaderForMetadata
public StackReader getDefaultStackReaderForMetadata()Supplies to theimageMetadataReaderto use, if no other reader is specified. -
setDefaultStackReaderForMetadata
public void setDefaultStackReaderForMetadata(StackReader defaultStackReaderForMetadata) Supplies to theimageMetadataReaderto use, if no other reader is specified.
-