Class FeatureEvaluator<T extends FeatureInput>
Object
- Type Parameters:
T- feature input-type
public class FeatureEvaluator<T extends FeatureInput>
extends FeatureRelatedBean<FeatureEvaluator<T>>
Defines a feature and provides a means to calculate inputs for it, a session.
Optionally, an energy stack can be associated with these inputs.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckMisconfigured(BeanInstanceMap defaultInstances) Checks that a bean's properties conform to expectations.Creates session for evaluatingfeatureoptionally adding an energy-stack.The specified energy stack.Parameters to optionally associated withstackEnergy, and meaningless ifstackEnergyis not specified.The single feature that will be calculated (possibly repeatedly) in the session.The single feature that will be calculated (possibly repeatedly) in the sessionOptionally specifies an energy-stack to be associated with every calculation input.voidsetDictionary(DictionaryProvider dictionary) Parameters to optionally associated withstackEnergy, and meaningless ifstackEnergyis not specified.voidsetFeature(Feature<T> feature) The single feature that will be calculated (possibly repeatedly) in the session.voidsetFeatureProvider(FeatureProvider<T> featureProvider) The single feature that will be calculated (possibly repeatedly) in the sessionvoidsetStackEnergy(Provider<Stack> stackEnergy) Optionally specifies an energy-stack to be associated with every calculation input.Methods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitializationMethods inherited from class org.anchoranalysis.bean.AnchorBean
describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
FeatureEvaluator
public FeatureEvaluator()
-
-
Method Details
-
checkMisconfigured
Description copied from class:AnchorBeanChecks that a bean's properties conform to expectations.- Overrides:
checkMisconfiguredin classAnchorBean<FeatureEvaluator<T extends FeatureInput>>- Parameters:
defaultInstances- all available default instances if theDefaultInstanceannotation is used- Throws:
BeanMisconfiguredException- if the bean has not been configured properly as XML
-
createFeatureSession
Creates session for evaluatingfeatureoptionally adding an energy-stack.- Returns:
- the calculator for a newly created session.
- Throws:
OperationFailedException- if the session creation fails
-
energyStack
The specified energy stack.- Returns:
- the energy stack if it is specified.
- Throws:
OperationFailedException- if the energy-stack is specified but cannot be created.
-
getFeature
The single feature that will be calculated (possibly repeatedly) in the session.Either this field must be set or
featureProvider, but not both. -
setFeature
The single feature that will be calculated (possibly repeatedly) in the session.Either this field must be set or
featureProvider, but not both. -
getFeatureProvider
The single feature that will be calculated (possibly repeatedly) in the sessionEither this field must be set or
feature, but not both. -
setFeatureProvider
The single feature that will be calculated (possibly repeatedly) in the sessionEither this field must be set or
feature, but not both. -
getStackEnergy
Optionally specifies an energy-stack to be associated with every calculation input. -
setStackEnergy
Optionally specifies an energy-stack to be associated with every calculation input. -
getDictionary
Parameters to optionally associated withstackEnergy, and meaningless ifstackEnergyis not specified.
-