Class FeatureFromList<T extends FeatureInput>
Object
AnchorBean<Feature<T>>
- Type Parameters:
T
- feature input-type of all features in the list, as well as the returned result.
A base class for a
Feature
that is a function of the results from a list of other
features.- Author:
- Owen Feehan
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
protected
FeatureFromList
(FeatureList<T> featureList) Create from a list of features. -
Method Summary
Modifier and TypeMethodDescriptionprotected String
descriptionForList
(String join) Derive a string description of all the items of the list concatenated together.getList()
The features whose results will be somehow combined, to form the result of this class.Class
<? extends FeatureInput> The class corresponding to feature input-type.void
Assigns the list of features to use.void
setList
(FeatureList<T> list) Assigns the list of features to use.Methods inherited from class org.anchoranalysis.feature.bean.Feature
assignTo, beforeCalc, calculate, calculateCheckInitialized, castAs, createListChildFeatures, describeBean, describeParameters, descriptionLong, duplicateChangeName, getCustomName, getFriendlyName, onInitialization, setCustomName, toString
Methods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized
Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise
-
Constructor Details
-
FeatureFromList
Create from a list of features.- Parameters:
featureList
- the list of features.
-
FeatureFromList
protected FeatureFromList()
-
-
Method Details
-
descriptionForList
Derive a string description of all the items of the list concatenated together.Each feature's individual description is separated from the next by
joinCharacter
.- Parameters:
join
- the character to separate items in the list.- Returns:
- the description, as above.
-
setList
Assigns the list of features to use.- Parameters:
list
- the list to assign.
-
setList
Assigns the list of features to use.- Parameters:
list
- the list to assign.
-
inputType
Description copied from class:Feature
The class corresponding to feature input-type.i.e. corresponding to the
T
template parameter.- Specified by:
inputType
in classFeature<T extends FeatureInput>
- Returns:
- the class.
-
getList
The features whose results will be somehow combined, to form the result of this class.
-