T
- feature input-typepublic class FeatureEvaluator<T extends FeatureInput> extends FeatureRelatedBean<FeatureEvaluator<T>>
Optionally, an energy stack can be associated with these inputs.
Constructor and Description |
---|
FeatureEvaluator() |
Modifier and Type | Method and Description |
---|---|
void |
checkMisconfigured(BeanInstanceMap defaultInstances)
Checks that a bean's properties conform to expectations.
|
FeatureCalculatorSingle<T> |
createFeatureSession()
Creates session for evaluating
feature optionally adding an energy-stack. |
Optional<EnergyStack> |
energyStack()
The specified energy stack.
|
DictionaryProvider |
getDictionary()
Parameters to optionally associated with
stackEnergy , and meaningless if stackEnergy is not specified. |
Feature<T> |
getFeature()
The single feature that will be calculated (possibly repeatedly) in the session.
|
FeatureProvider<T> |
getFeatureProvider()
The single feature that will be calculated (possibly repeatedly) in the session
|
Provider<Stack> |
getStackEnergy()
Optionally specifies an energy-stack to be associated with every calculation input.
|
void |
setDictionary(DictionaryProvider dictionary)
Parameters to optionally associated with
stackEnergy , and meaningless if stackEnergy is not specified. |
void |
setFeature(Feature<T> feature)
The single feature that will be calculated (possibly repeatedly) in the session.
|
void |
setFeatureProvider(FeatureProvider<T> featureProvider)
The single feature that will be calculated (possibly repeatedly) in the session
|
void |
setStackEnergy(Provider<Stack> stackEnergy)
Optionally specifies an energy-stack to be associated with every calculation input.
|
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitialization
describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public void checkMisconfigured(BeanInstanceMap defaultInstances) throws BeanMisconfiguredException
AnchorBean
checkMisconfigured
in class AnchorBean<FeatureEvaluator<T extends FeatureInput>>
defaultInstances
- all available default instances if the DefaultInstance
annotation is usedBeanMisconfiguredException
- if the bean has not been configured properly as XMLpublic FeatureCalculatorSingle<T> createFeatureSession() throws OperationFailedException
feature
optionally adding an energy-stack.OperationFailedException
public Optional<EnergyStack> energyStack() throws OperationFailedException
OperationFailedException
- if the energy-stack is specified but cannot be created.public Feature<T> getFeature()
Either this field must be set or featureProvider
, but not both.
public void setFeature(Feature<T> feature)
Either this field must be set or featureProvider
, but not both.
public FeatureProvider<T> getFeatureProvider()
Either this field must be set or feature
, but not both.
public void setFeatureProvider(FeatureProvider<T> featureProvider)
Either this field must be set or feature
, but not both.
public Provider<Stack> getStackEnergy()
public void setStackEnergy(Provider<Stack> stackEnergy)
public DictionaryProvider getDictionary()
stackEnergy
, and meaningless if stackEnergy
is not specified.public void setDictionary(DictionaryProvider dictionary)
stackEnergy
, and meaningless if stackEnergy
is not specified.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.