Class FeatureRelatedInitialization
Object
FeatureRelatedInitialization
- All Implemented Interfaces:
BeanInitialization
Parameters for initializing a
FeatureRelatedBean.- Author:
- Owen Feehan
-
Method Summary
Modifier and TypeMethodDescriptionstatic FeatureRelatedInitializationcreate(SharedObjects sharedObjects) Creates with shared-objects, and otherwise empty initialization.static FeatureRelatedInitializationCreates a log and a model-directory, and otherwise empty initialization.The associated initialization for aDictionaryBean.Gets the underlyingNamedProviderStorethat provides shared-features.A named-set of file-paths.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 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 OperationFailedException Adds 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.