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) 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
- Overrides:
checkMisconfiguredin classAnchorBean<FeatureEvaluator<T extends FeatureInput>>- Throws:
BeanMisconfiguredException
-
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
-
setFeature
-
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
-
setStackEnergy
-
getDictionary
Parameters to optionally associated withstackEnergy, and meaningless ifstackEnergyis not specified.
-