Class FeatureRelatedInitialization
Object
FeatureRelatedInitialization
- All Implemented Interfaces:
BeanInitialization
Parameters for initializing a
FeatureRelatedBean
.- Author:
- Owen Feehan
-
Method Summary
Modifier and TypeMethodDescriptionstatic FeatureRelatedInitialization
create
(SharedObjects sharedObjects) Creates with shared-objects, and otherwise empty initialization.static FeatureRelatedInitialization
Creates a log and a model-directory, and otherwise empty initialization.The associated initialization for aDictionaryBean
.Gets the underlyingNamedProviderStore
that provides shared-features.A named-set of file-paths.Shared features available for reference during calculation.void
populate
(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 underlyingNamedProviderStore
that 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.