Package org.anchoranalysis.feature.store
Class NamedFeatureStoreFactory
Object
org.anchoranalysis.feature.store.NamedFeatureStoreFactory
public class NamedFeatureStoreFactory extends Object
Creates a
NamedFeatureStore.- Author:
- Owen Feehan
-
Method Summary
Modifier and Type Method Description static NamedFeatureStoreFactorybothNameAndParameters()The custom-names of the features are derived from both their name and their parameters.<T extends FeatureInput>
NamedFeatureStore<T>createNamedFeatureList(List<NamedBean<FeatureListProvider<T>>> namedFeatures)Create aNamedFeatureStorefrom a list of beans.static NamedFeatureStoreFactoryparametersOnly()The custom-names of the features are derived only from their parameters, but not their name.
-
Method Details
-
parametersOnly
The custom-names of the features are derived only from their parameters, but not their name.- Returns:
- a newly-created factory, that creates features as above.
-
bothNameAndParameters
The custom-names of the features are derived from both their name and their parameters.- Returns:
- a newly-created factory, that creates features as above.
-
createNamedFeatureList
public <T extends FeatureInput> NamedFeatureStore<T> createNamedFeatureList(List<NamedBean<FeatureListProvider<T>>> namedFeatures) throws ProvisionFailedExceptionCreate aNamedFeatureStorefrom a list of beans.- Type Parameters:
T- feature input-type.- Parameters:
namedFeatures- the beans that provide lists of features.- Returns:
- a newly created store, with the name of features derived from the beans and the parameterization of this factory instance.
- Throws:
ProvisionFailedException- if any feature-list cannot be created from the bean.
-