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
ConstructorsModifierConstructorDescriptionprotectedprotectedFeatureFromList(FeatureList<T> featureList) Create from a list of features. -
Method Summary
Modifier and TypeMethodDescriptionprotected StringdescriptionForList(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.voidAssigns the list of features to use.voidsetList(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, 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
-
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:FeatureThe class corresponding to feature input-type.i.e. corresponding to the
Ttemplate parameter.- Specified by:
inputTypein classFeature<T extends FeatureInput>- Returns:
- the class.
-
getList
The features whose results will be somehow combined, to form the result of this class.
-