Class PermuteFeatureSequenceInteger<T extends FeatureInputDictionary>
Object
AnchorBean<FeatureListProvider<T>>
InitializableBean<FeatureListProvider<T>,FeatureRelatedInitialization>
FeatureRelatedBean<FeatureListProvider<T>>
FeatureProviderBean<FeatureListProvider<T>,FeatureList<T>>
FeatureListProvider<T>
PermuteFeatureBase<T>
PermuteFeatureSequenceInteger<T>
- Type Parameters:
T
- feature-input type
- All Implemented Interfaces:
Provider<FeatureList<T>>
- Direct Known Subclasses:
PermuteDivideByParam
,PermuteFirstSecondOrder
public abstract class PermuteFeatureSequenceInteger<T extends FeatureInputDictionary>
extends PermuteFeatureBase<T>
Permutes a property on a feature with a sequence of integers.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
checkMisconfigured
(BeanInstanceMap defaultInstances) Checks that a bean's properties conform to expectations.protected abstract PermutePropertySequenceInteger
configurePermuteProperty
(PermutePropertySequenceInteger permuteProperty) Configures thePermutePropertySequenceInteger
for this permutation.protected abstract PermuteFeature
<Integer, T> createDelegate
(Feature<T> feature) Creates a delegatePermuteFeature
for the given feature.createParam
(String suffix, boolean appendNumber) Creates a parameter feature for the permutation.protected FeatureList
<T> createPermutedFeaturesFor
(Feature<T> feature) Creates permuted features for the given feature.Prefix for the parameter key.Defines how to permute the property with a sequence of integers.void
setParamPrefix
(String paramPrefix) Prefix for the parameter key.void
setPermuteProperty
(PermutePropertySequenceInteger permuteProperty) Defines how to permute the property with a sequence of integers.Methods 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, onInitialization
Methods inherited from class org.anchoranalysis.bean.AnchorBean
describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
PermuteFeatureSequenceInteger
public PermuteFeatureSequenceInteger()
-
-
Method Details
-
checkMisconfigured
Description copied from class:AnchorBean
Checks that a bean's properties conform to expectations.- Overrides:
checkMisconfigured
in classAnchorBean<FeatureListProvider<T extends FeatureInputDictionary>>
- 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 FeatureInputDictionary>
- Parameters:
feature
- the feature to permute- Returns:
- a
FeatureList
containing the permuted features - Throws:
ProvisionFailedException
- if the permuted features cannot be created
-
createDelegate
protected abstract PermuteFeature<Integer,T> createDelegate(Feature<T> feature) throws ProvisionFailedException Creates a delegatePermuteFeature
for the given feature.- Parameters:
feature
- the feature to permute- Returns:
- a new
PermuteFeature
instance - Throws:
ProvisionFailedException
- if the delegate cannot be created
-
configurePermuteProperty
protected abstract PermutePropertySequenceInteger configurePermuteProperty(PermutePropertySequenceInteger permuteProperty) Configures thePermutePropertySequenceInteger
for this permutation.- Parameters:
permuteProperty
- the property to configure- Returns:
- the configured
PermutePropertySequenceInteger
-
createParam
Creates a parameter feature for the permutation.- Parameters:
suffix
- the suffix for the parameter keyappendNumber
- whether to append a number to the key- Returns:
- a new
Feature
instance
-
getParamPrefix
Prefix for the parameter key. -
setParamPrefix
Prefix for the parameter key. -
getPermuteProperty
Defines how to permute the property with a sequence of integers. -
setPermuteProperty
Defines how to permute the property with a sequence of integers.
-