Class FeatureSingleMemo
An abstract base class for features that operate on a single memoized object.
This class extends Feature and specifies FeatureInputSingleMemo as the input
type for feature calculations. It is designed to be used with features that need to process a
single memoized object, typically for performance optimization in energy calculations.
Subclasses must implement the calculate(FeatureCalculationInput) method to define the
specific feature calculation logic.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.anchoranalysis.feature.bean.Feature
assignTo, beforeCalc, 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
-
FeatureSingleMemo
public FeatureSingleMemo()
-
-
Method Details
-
calculate
public abstract double calculate(FeatureCalculationInput<FeatureInputSingleMemo> input) throws FeatureCalculationException - Specified by:
calculatein classFeature<FeatureInputSingleMemo>- Throws:
FeatureCalculationException
-
inputType
- Specified by:
inputTypein classFeature<FeatureInputSingleMemo>
-