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
public class ParamFromCollection<T extends FeatureInput>
extends 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 -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbeforeCalc(FeatureInitialization initialization) doubleThe 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
protected void beforeCalc(FeatureInitialization initialization) throws InitializeException - Overrides:
beforeCalcin classFeature<T extends FeatureInput>- Throws:
InitializeException
-
calculate
-
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.
-