Class ConvertNamedChannels<T extends org.anchoranalysis.image.io.channel.input.NamedChannelsInput,S,U extends org.anchoranalysis.io.input.InputFromManager>
Object
org.anchoranalysis.bean.AnchorBean<org.anchoranalysis.experiment.bean.task.Task<T,S>>
org.anchoranalysis.experiment.bean.task.Task<T,SharedStateRememberConverted<U,S>>
org.anchoranalysis.plugin.mpp.bean.convert.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:
org.anchoranalysis.experiment.io.ReplaceTask<U,S>
public class ConvertNamedChannels<T extends org.anchoranalysis.image.io.channel.input.NamedChannelsInput,S,U extends org.anchoranalysis.io.input.InputFromManager> extends org.anchoranalysis.experiment.bean.task.Task<T,SharedStateRememberConverted<U,S>> implements org.anchoranalysis.experiment.io.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 Constructor Description ConvertNamedChannels() -
Method Summary
Modifier and Type Method Description voidafterAllJobsAreExecuted(SharedStateRememberConverted<U,S> sharedState, org.anchoranalysis.io.output.outputter.InputOutputContext context)SharedStateRememberConverted<U,S>beforeAnyJobIsExecuted(org.anchoranalysis.io.output.outputter.Outputter outputter, org.anchoranalysis.inference.concurrency.ConcurrencyPlan concurrencyPlan, List<T> inputs, org.anchoranalysis.experiment.task.ParametersExperiment parameters)org.anchoranalysis.io.output.enabled.OutputEnabledMutabledefaultOutputs()voiddoJobOnInput(org.anchoranalysis.experiment.task.InputBound<T,SharedStateRememberConverted<U,S>> inputBound)org.anchoranalysis.image.io.bean.stack.reader.StackReadergetDefaultStackReaderForMetadata()Supplies to theimageMetadataReaderto use, if no other reader is specified.org.anchoranalysis.image.io.bean.stack.metadata.reader.ImageMetadataReadergetImageMetadataReader()How to read theImageMetadatafrom the file-system.org.anchoranalysis.experiment.bean.task.Task<U,S>getTask()The underlying task that will be called, perhaps with a different input-type.booleanhasVeryQuickPerInputExecution()org.anchoranalysis.experiment.task.InputTypesExpectedinputTypesExpected()voidreplaceTask(org.anchoranalysis.experiment.bean.task.Task<U,S> taskToReplace)voidsetDefaultStackReaderForMetadata(org.anchoranalysis.image.io.bean.stack.reader.StackReader defaultStackReaderForMetadata)Supplies to theimageMetadataReaderto use, if no other reader is specified.voidsetImageMetadataReader(org.anchoranalysis.image.io.bean.stack.metadata.reader.ImageMetadataReader imageMetadataReader)How to read theImageMetadatafrom the file-system.voidsetTask(org.anchoranalysis.experiment.bean.task.Task<U,S> task)The underlying task that will be called, perhaps with a different input-type.Methods inherited from class org.anchoranalysis.experiment.bean.task.Task
executeJob, isInputCompatibleWith
-
Constructor Details
-
ConvertNamedChannels
public ConvertNamedChannels()
-
-
Method Details
-
beforeAnyJobIsExecuted
public SharedStateRememberConverted<U,S> beforeAnyJobIsExecuted(org.anchoranalysis.io.output.outputter.Outputter outputter, org.anchoranalysis.inference.concurrency.ConcurrencyPlan concurrencyPlan, List<T> inputs, org.anchoranalysis.experiment.task.ParametersExperiment parameters) throws org.anchoranalysis.experiment.ExperimentExecutionException- Specified by:
beforeAnyJobIsExecutedin classorg.anchoranalysis.experiment.bean.task.Task<T extends org.anchoranalysis.image.io.channel.input.NamedChannelsInput,SharedStateRememberConverted<U extends org.anchoranalysis.io.input.InputFromManager,S>>- Throws:
org.anchoranalysis.experiment.ExperimentExecutionException
-
doJobOnInput
public void doJobOnInput(org.anchoranalysis.experiment.task.InputBound<T,SharedStateRememberConverted<U,S>> inputBound) throws org.anchoranalysis.experiment.JobExecutionException- Specified by:
doJobOnInputin classorg.anchoranalysis.experiment.bean.task.Task<T extends org.anchoranalysis.image.io.channel.input.NamedChannelsInput,SharedStateRememberConverted<U extends org.anchoranalysis.io.input.InputFromManager,S>>- Throws:
org.anchoranalysis.experiment.JobExecutionException
-
inputTypesExpected
public org.anchoranalysis.experiment.task.InputTypesExpected inputTypesExpected()- Specified by:
inputTypesExpectedin classorg.anchoranalysis.experiment.bean.task.Task<T extends org.anchoranalysis.image.io.channel.input.NamedChannelsInput,SharedStateRememberConverted<U extends org.anchoranalysis.io.input.InputFromManager,S>>
-
afterAllJobsAreExecuted
public void afterAllJobsAreExecuted(SharedStateRememberConverted<U,S> sharedState, org.anchoranalysis.io.output.outputter.InputOutputContext context) throws org.anchoranalysis.experiment.ExperimentExecutionException- Specified by:
afterAllJobsAreExecutedin classorg.anchoranalysis.experiment.bean.task.Task<T extends org.anchoranalysis.image.io.channel.input.NamedChannelsInput,SharedStateRememberConverted<U extends org.anchoranalysis.io.input.InputFromManager,S>>- Throws:
org.anchoranalysis.experiment.ExperimentExecutionException
-
hasVeryQuickPerInputExecution
public boolean hasVeryQuickPerInputExecution()- Specified by:
hasVeryQuickPerInputExecutionin classorg.anchoranalysis.experiment.bean.task.Task<T extends org.anchoranalysis.image.io.channel.input.NamedChannelsInput,SharedStateRememberConverted<U extends org.anchoranalysis.io.input.InputFromManager,S>>
-
replaceTask
-
defaultOutputs
public org.anchoranalysis.io.output.enabled.OutputEnabledMutable defaultOutputs()- Overrides:
defaultOutputsin classorg.anchoranalysis.experiment.bean.task.Task<T extends org.anchoranalysis.image.io.channel.input.NamedChannelsInput,SharedStateRememberConverted<U extends org.anchoranalysis.io.input.InputFromManager,S>>
-
getTask
The underlying task that will be called, perhaps with a different input-type. -
setTask
The underlying task that will be called, perhaps with a different input-type. -
getImageMetadataReader
public org.anchoranalysis.image.io.bean.stack.metadata.reader.ImageMetadataReader getImageMetadataReader()How to read theImageMetadatafrom the file-system. -
setImageMetadataReader
public void setImageMetadataReader(org.anchoranalysis.image.io.bean.stack.metadata.reader.ImageMetadataReader imageMetadataReader)How to read theImageMetadatafrom the file-system. -
getDefaultStackReaderForMetadata
public org.anchoranalysis.image.io.bean.stack.reader.StackReader getDefaultStackReaderForMetadata()Supplies to theimageMetadataReaderto use, if no other reader is specified. -
setDefaultStackReaderForMetadata
public void setDefaultStackReaderForMetadata(org.anchoranalysis.image.io.bean.stack.reader.StackReader defaultStackReaderForMetadata)Supplies to theimageMetadataReaderto use, if no other reader is specified.
-