Class DefineOutputterWithEnergy
Object
org.anchoranalysis.bean.AnchorBean<DefineOutputter>
org.anchoranalysis.plugin.mpp.bean.define.DefineOutputter
org.anchoranalysis.plugin.mpp.bean.define.DefineOutputterWithEnergy
public class DefineOutputterWithEnergy extends DefineOutputter
Like a
Define but outputs also an energy-stack.
The following outputs are produced:
| Output Name | Default? | Description |
|---|---|---|
outputs from EnergyStackWriter |
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceDefineOutputterWithEnergy.ProcessWithEnergyStack<T,S>Functional interface for processing with an energy stack.Nested classes/interfaces inherited from class org.anchoranalysis.plugin.mpp.bean.define.DefineOutputter
DefineOutputter.Processor<T> -
Constructor Summary
Constructors Constructor Description DefineOutputterWithEnergy() -
Method Summary
Modifier and Type Method Description org.anchoranalysis.bean.shared.dictionary.DictionaryProvidergetDictionary()An optional dictionary provider.org.anchoranalysis.image.bean.provider.stack.StackProvidergetStackEnergy()The stack provider for the energy stack.<S> SprocessInput(org.anchoranalysis.experiment.io.InitializationContext context, org.anchoranalysis.core.identifier.provider.store.SharedObjects sharedObjects, Optional<org.anchoranalysis.core.value.Dictionary> dictionary, DefineOutputterWithEnergy.ProcessWithEnergyStack<org.anchoranalysis.image.bean.nonbean.init.ImageInitialization,S> operation)Processes the input with an energy stack and shared objects.<S> voidprocessInput(org.anchoranalysis.mpp.io.input.ExportSharedObjects input, org.anchoranalysis.experiment.io.InitializationContext context, DefineOutputterWithEnergy.ProcessWithEnergyStack<org.anchoranalysis.image.bean.nonbean.init.ImageInitialization,S> operation)Processes the input with an energy stack.voidsetDictionary(org.anchoranalysis.bean.shared.dictionary.DictionaryProvider dictionary)An optional dictionary provider.voidsetStackEnergy(org.anchoranalysis.image.bean.provider.stack.StackProvider stackEnergy)The stack provider for the energy stack.Methods inherited from class org.anchoranalysis.plugin.mpp.bean.define.DefineOutputter
addAllOutputNamesTo, createInitialization, createInitialization, getDefine, isSuppressSubfolders, outputSharedObjects, process, setDefine, setSuppressSubfolders
-
Constructor Details
-
DefineOutputterWithEnergy
public DefineOutputterWithEnergy()
-
-
Method Details
-
processInput
public <S> void processInput(org.anchoranalysis.mpp.io.input.ExportSharedObjects input, org.anchoranalysis.experiment.io.InitializationContext context, DefineOutputterWithEnergy.ProcessWithEnergyStack<org.anchoranalysis.image.bean.nonbean.init.ImageInitialization,S> operation) throws org.anchoranalysis.core.exception.OperationFailedExceptionProcesses the input with an energy stack.- Type Parameters:
S- return-type- Parameters:
input- the input to processcontext- the initialization contextoperation- the operation to perform- Throws:
org.anchoranalysis.core.exception.OperationFailedException- if the operation fails
-
processInput
public <S> S processInput(org.anchoranalysis.experiment.io.InitializationContext context, org.anchoranalysis.core.identifier.provider.store.SharedObjects sharedObjects, Optional<org.anchoranalysis.core.value.Dictionary> dictionary, DefineOutputterWithEnergy.ProcessWithEnergyStack<org.anchoranalysis.image.bean.nonbean.init.ImageInitialization,S> operation) throws org.anchoranalysis.core.exception.OperationFailedExceptionProcesses the input with an energy stack and shared objects.- Type Parameters:
S- return-type- Parameters:
context- the initialization contextsharedObjects- the shared objectsdictionary- an optional dictionaryoperation- the operation to perform- Returns:
- the result of the processing
- Throws:
org.anchoranalysis.core.exception.OperationFailedException- if the operation fails
-
getStackEnergy
public org.anchoranalysis.image.bean.provider.stack.StackProvider getStackEnergy()The stack provider for the energy stack. -
setStackEnergy
public void setStackEnergy(org.anchoranalysis.image.bean.provider.stack.StackProvider stackEnergy)The stack provider for the energy stack. -
getDictionary
public org.anchoranalysis.bean.shared.dictionary.DictionaryProvider getDictionary()An optional dictionary provider. -
setDictionary
public void setDictionary(org.anchoranalysis.bean.shared.dictionary.DictionaryProvider dictionary)An optional dictionary provider.
-