Class SharedFeaturesSubset<T extends FeatureInput>
Object
SharedFeaturesSubset<T>
- Type Parameters:
T
- the feature input-type
A subset of features from
SharedFeatures
that share a common feature input-type.- Author:
- Owen Feehan
-
Constructor Summary
ConstructorsConstructorDescriptionSharedFeaturesSubset
(NameValueMap<Feature<T>> map) Creates a newSharedFeaturesSubset
instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Iterates over each feature in the instance.getException
(String name) Gets a feature by name, throwing an exception if it doesn't exist.void
initializeRecursive
(FeatureInitialization initialization, Logger logger) Initialize all features in this instance, recursively also initializating any child-features.
-
Constructor Details
-
SharedFeaturesSubset
Creates a newSharedFeaturesSubset
instance.- Parameters:
map
- A map from the name of a feature to the feature-instance.
-
-
Method Details
-
initializeRecursive
public void initializeRecursive(FeatureInitialization initialization, Logger logger) throws InitializeException Initialize all features in this instance, recursively also initializating any child-features.- Parameters:
initialization
- the parameters for initialization.logger
- a logger that becomes associated with eachFeature
for messages or errors.- Throws:
InitializeException
- if any feature cannot be successfully initialized.
-
forEach
Iterates over each feature in the instance.- Parameters:
consumer
- called on each feature in the instance.
-
getException
Gets a feature by name, throwing an exception if it doesn't exist.- Parameters:
name
- the name of the feature.- Returns:
- the feature.
- Throws:
NamedProviderGetException
- if no feature withname
exists in this instance.
-