Class FeatureRelatedInitialization
Object
org.anchoranalysis.feature.initialization.FeatureRelatedInitialization
- All Implemented Interfaces:
BeanInitialization
public class FeatureRelatedInitialization extends Object implements BeanInitialization
Parameters for initializing a
FeatureRelatedBean.- Author:
- Owen Feehan
-
Method Summary
Modifier and Type Method Description static FeatureRelatedInitializationcreate(SharedObjects sharedObjects)Creates with shared-objects, and otherwise empty initialization.static FeatureRelatedInitializationcreate(Logger logger, Path modelDirectory)Creates a log and a model-directory, and otherwise empty initialization.DictionaryInitializationgetDictionary()The associated initialization for aDictionaryBean.NamedProviderStore<FeatureList<FeatureInput>>getFeatureLists()Gets the underlyingNamedProviderStorethat provides shared-features.FilePathInitializationgetFilePaths()A named-set of file-paths.SharedFeaturesgetSharedFeatures()Shared features available for reference during calculation.voidpopulate(List<NamedBean<FeatureListProvider<FeatureInput>>> namedProviders, Logger logger)Adds features into the shared-feature storage from a list of named-beans.
-
Method Details
-
create
Creates with shared-objects, and otherwise empty initialization.- Parameters:
sharedObjects- the shared-objects.- Returns:
- an initialization containing shared-objects, but otherwise unpopulated.
-
create
Creates a log and a model-directory, and otherwise empty initialization.- Parameters:
logger- the logger.modelDirectory- the path to the directory contains models.- Returns:
- an initialization containing the above two aspects, but otherwise unpopulated.
-
getFeatureLists
Gets the underlyingNamedProviderStorethat provides shared-features.- Returns:
- the underlying store, which if changed, will also change this instance.
-
populate
public void populate(List<NamedBean<FeatureListProvider<FeatureInput>>> namedProviders, Logger logger) throws OperationFailedExceptionAdds features into the shared-feature storage from a list of named-beans.Additionally the features are initialized, with the current instance.
- Parameters:
namedProviders- providers of feature-lists, each list with an associated name.logger- the logger to supply to features to report messages and errors with.- Throws:
OperationFailedException- if any feature provided by the lists fails to initialize.
-
getDictionary
The associated initialization for aDictionaryBean. -
getFilePaths
A named-set of file-paths. -
getSharedFeatures
Shared features available for reference during calculation.
-