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 TypeMethodDescriptionvoid
checkMisconfigured
(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 evaluatedvoid
Called after initialization.void
setPermutation
(PermuteProperty<S> permutation) A permutation to apply.void
setPermutations
(List<PermuteProperty<S>> permutations) A list of permutations to apply.void
setReferencesFeatureListCreator
(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, setFeature
Methods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized
Methods 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:AnchorBean
Checks that a bean's properties conform to expectations.- Overrides:
checkMisconfigured
in classAnchorBean<FeatureListProvider<T extends FeatureInput>>
- Parameters:
defaultInstances
- all available default instances if theDefaultInstance
annotation 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:PermuteFeatureBase
Creates permuted features for the given feature.- Specified by:
createPermutedFeaturesFor
in classPermuteFeatureBase<T extends FeatureInput>
- Parameters:
feature
- the feature to permute- Returns:
- a
FeatureList
containing the permuted features - Throws:
ProvisionFailedException
- if the permuted features cannot be created
-
onInitialization
Description copied from class:InitializableBean
Called after initialization. An empty implementation is provided, to be overridden as needed in the sub-classes.- Overrides:
onInitialization
in 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 orpermutations
must be non-empty, but not both. -
setPermutation
A permutation to apply. Either this must be present orpermutations
must be non-empty, but not both. -
getPermutations
A list of permutations to apply. Either this must be non-empty orpermutation
must be present, but not both. -
setPermutations
A list of permutations to apply. Either this must be non-empty orpermutation
must be present, but not both.
-