Class ParamFromCollection<T extends FeatureInput>
Object
AnchorBean<Feature<T>>
InitializableBean<Feature<T>,FeatureInitialization>
Feature<T>
FeatureGeneric<T>
ParamFromCollection<T>
- Type Parameters:
T- feature-input-type
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 -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbeforeCalc(FeatureInitialization initialization) Dummy method, that children can optionally override.doublecalculate(FeatureCalculationInput<T> input) Calculates a value for some input.The name of theDictionarythat will be retrieved fromSharedObjects.getKey()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.voidThe name of the key in the dictionary, whose corresponding value will be returned.Methods inherited from class org.anchoranalysis.feature.bean.operator.FeatureGeneric
inputTypeMethods 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, isInitializedMethods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise
-
Constructor Details
-
ParamFromCollection
public ParamFromCollection()
-
-
Method Details
-
beforeCalc
Description copied from class:FeatureDummy method, that children can optionally override.- Overrides:
beforeCalcin classFeature<T extends FeatureInput>- Parameters:
initialization- initialization parameters.- Throws:
InitializeException- if initialization cannot complete successfully.
-
calculate
Description copied from class:FeatureCalculates a value for some input.- Specified by:
calculatein classFeature<T extends FeatureInput>- Parameters:
input- the input to the calculation.- Returns:
- the result of the calculation.
- Throws:
FeatureCalculationException- if the calculation cannot successfully complete.
-
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.
-