Class ParamFromCollection<T extends org.anchoranalysis.feature.input.FeatureInput>
Object
org.anchoranalysis.bean.AnchorBean<B>
org.anchoranalysis.bean.initializable.InitializableBean<org.anchoranalysis.feature.bean.Feature<T>,org.anchoranalysis.feature.initialization.FeatureInitialization>
org.anchoranalysis.feature.bean.Feature<T>
org.anchoranalysis.feature.bean.operator.FeatureGeneric<T>
org.anchoranalysis.plugin.image.feature.bean.shared.ParamFromCollection<T>
- Type Parameters:
T- feature-input-type
public class ParamFromCollection<T extends org.anchoranalysis.feature.input.FeatureInput>
extends org.anchoranalysis.feature.bean.operator.FeatureGeneric<T>
Retrieves a parameter as stored in a
Dictionary in SharedObjects.
This differs from FromDictionary which
reads the parameter from the energy-stack, whereas this from a specific parameters collection.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description ParamFromCollection() -
Method Summary
Modifier and Type Method Description protected voidbeforeCalc(org.anchoranalysis.feature.initialization.FeatureInitialization initialization)doublecalculate(org.anchoranalysis.feature.calculate.FeatureCalculationInput<T> input)StringgetDictionary()The name of theDictionarythat will be retrieved fromSharedObjects.StringgetKey()The name of the key in the dictionary, whose corresponding value will be returned.voidsetDictionary(String dictionary)The name of theDictionarythat will be retrieved fromSharedObjects.voidsetKey(String key)The name of the key in the dictionary, whose corresponding value will be returned.Methods inherited from class org.anchoranalysis.feature.bean.Feature
assignTo, calculateCheckInitialized, castAs, createListChildFeatures, describeBean, describeParameters, descriptionLong, duplicateChangeName, getCustomName, getFriendlyName, onInitialization, setCustomName, toStringMethods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized
-
Constructor Details
-
ParamFromCollection
public ParamFromCollection()
-
-
Method Details
-
beforeCalc
protected void beforeCalc(org.anchoranalysis.feature.initialization.FeatureInitialization initialization) throws org.anchoranalysis.core.exception.InitializeException- Overrides:
beforeCalcin classorg.anchoranalysis.feature.bean.Feature<T extends org.anchoranalysis.feature.input.FeatureInput>- Throws:
org.anchoranalysis.core.exception.InitializeException
-
calculate
public double calculate(org.anchoranalysis.feature.calculate.FeatureCalculationInput<T> input) throws org.anchoranalysis.feature.calculate.FeatureCalculationException- Specified by:
calculatein classorg.anchoranalysis.feature.bean.Feature<T extends org.anchoranalysis.feature.input.FeatureInput>- Throws:
org.anchoranalysis.feature.calculate.FeatureCalculationException
-
getDictionary
The name of theDictionarythat will be retrieved fromSharedObjects. -
setDictionary
The name of theDictionarythat will be retrieved fromSharedObjects. -
getKey
The name of the key in the dictionary, whose corresponding value will be returned. -
setKey
The name of the key in the dictionary, whose corresponding value will be returned.
-