Class PermuteFeatureBase<T extends FeatureInput>
Object
AnchorBean<FeatureListProvider<T>>
InitializableBean<FeatureListProvider<T>, FeatureRelatedInitialization>
FeatureRelatedBean<FeatureListProvider<T>>
FeatureProviderBean<FeatureListProvider<T>, FeatureList<T>>
FeatureListProvider<T>
PermuteFeatureBase<T>
- Type Parameters:
T- input-type of feature
- All Implemented Interfaces:
Provider<FeatureList<T>>
- Direct Known Subclasses:
PermuteFeature,PermuteFeatureSequenceInteger
public abstract class PermuteFeatureBase<T extends FeatureInput>
extends FeatureListProvider<T>
Creates permutations of a feature by modifying a particular property of it in different ways.
This class is designed to be an abstract-base-class for different types of permutations on a single feature.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract FeatureList<T> createPermutedFeaturesFor(Feature<T> feature) Creates permuted features for the given feature.FeatureList<T> get()Feature<T> The feature to be permuted.voidsetFeature(Feature<T> feature) The feature to be permuted.Methods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitializationMethods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
PermuteFeatureBase
public PermuteFeatureBase()
-
-
Method Details
-
get
- Throws:
ProvisionFailedException
-
createPermutedFeaturesFor
protected abstract FeatureList<T> createPermutedFeaturesFor(Feature<T> feature) throws ProvisionFailedException Creates permuted features for the given feature.- Parameters:
feature- the feature to permute- Returns:
- a
FeatureListcontaining the permuted features - Throws:
ProvisionFailedException- if the permuted features cannot be created
-
getFeature
The feature to be permuted. -
setFeature
The feature to be permuted.
-