Package org.anchoranalysis.feature.store
Class NamedFeatureStoreFactory
Object
NamedFeatureStoreFactory
Creates a
NamedFeatureStore
.- Author:
- Owen Feehan
-
Method Summary
Modifier and TypeMethodDescriptionstatic NamedFeatureStoreFactory
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 aNamedFeatureStore
from a list of beans.static NamedFeatureStoreFactory
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 ProvisionFailedException Create aNamedFeatureStore
from 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.
-