Class PermuteFeature<S,T extends FeatureInput>
Object
AnchorBean<FeatureListProvider<T>>
InitializableBean<FeatureListProvider<T>,FeatureRelatedInitialization>
FeatureRelatedBean<FeatureListProvider<T>>
FeatureProviderBean<FeatureListProvider<T>,FeatureList<T>>
FeatureListProvider<T>
PermuteFeatureBase<T>
PermuteFeature<S,T>
- Type Parameters:
S- permutation typeT- feature-input
- All Implemented Interfaces:
Provider<FeatureList<T>>
Permutes one or more properties of a Feature, so as to create a set of Features
As a convenience, a single permutation can be defined using the permutation property,
whereas multiple permutations can be defined using permutations list of properties.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckMisconfigured(BeanInstanceMap defaultInstances) Checks that a bean's properties conform to expectations.protected FeatureList<T> createPermutedFeaturesFor(Feature<T> feature) Creates permuted features for the given feature.A permutation to apply.A list of permutations to apply.Makes sure a particular feature list creator is evaluatedvoidCalled after initialization.voidsetPermutation(PermuteProperty<S> permutation) A permutation to apply.voidsetPermutations(List<PermuteProperty<S>> permutations) A list of permutations to apply.voidsetReferencesFeatureListCreator(StringSet referencesFeatureListCreator) Makes sure a particular feature list creator is evaluatedMethods inherited from class org.anchoranalysis.plugin.image.feature.bean.list.permute.PermuteFeatureBase
get, getFeature, setFeatureMethods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitializedMethods inherited from class org.anchoranalysis.bean.AnchorBean
describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
PermuteFeature
public PermuteFeature()
-
-
Method Details
-
checkMisconfigured
Description copied from class:AnchorBeanChecks that a bean's properties conform to expectations.- Overrides:
checkMisconfiguredin classAnchorBean<FeatureListProvider<T extends FeatureInput>>- Parameters:
defaultInstances- all available default instances if theDefaultInstanceannotation is used- Throws:
BeanMisconfiguredException- if the bean has not been configured properly as XML
-
createPermutedFeaturesFor
protected FeatureList<T> createPermutedFeaturesFor(Feature<T> feature) throws ProvisionFailedException Description copied from class:PermuteFeatureBaseCreates permuted features for the given feature.- Specified by:
createPermutedFeaturesForin classPermuteFeatureBase<T extends FeatureInput>- Parameters:
feature- the feature to permute- Returns:
- a
FeatureListcontaining the permuted features - Throws:
ProvisionFailedException- if the permuted features cannot be created
-
onInitialization
Description copied from class:InitializableBeanCalled after initialization. An empty implementation is provided, to be overridden as needed in the sub-classes.- Overrides:
onInitializationin classInitializableBean<FeatureListProvider<T extends FeatureInput>,FeatureRelatedInitialization> - Parameters:
so- parameters used for initialization.- Throws:
InitializeException- if initialization does not successfully complete.
-
getReferencesFeatureListCreator
Makes sure a particular feature list creator is evaluated -
setReferencesFeatureListCreator
Makes sure a particular feature list creator is evaluated -
getPermutation
A permutation to apply. Either this must be present orpermutationsmust be non-empty, but not both. -
setPermutation
A permutation to apply. Either this must be present orpermutationsmust be non-empty, but not both. -
getPermutations
A list of permutations to apply. Either this must be non-empty orpermutationmust be present, but not both. -
setPermutations
A list of permutations to apply. Either this must be non-empty orpermutationmust be present, but not both.
-