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 TypeMethodDescriptionvoidcheckMisconfigured(BeanInstanceMap defaultInstances) Checks that a bean's properties conform to expectations.protected abstract PermutePropertySequenceIntegerconfigurePermuteProperty(PermutePropertySequenceInteger permuteProperty) Configures thePermutePropertySequenceIntegerfor this permutation.protected abstract PermuteFeature<Integer, T> createDelegate(Feature<T> feature) Creates a delegatePermuteFeaturefor 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.voidsetParamPrefix(String paramPrefix) Prefix for the parameter key.voidsetPermuteProperty(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, setFeatureMethods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitializationMethods 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:AnchorBeanChecks that a bean's properties conform to expectations.- Overrides:
checkMisconfiguredin classAnchorBean<FeatureListProvider<T extends FeatureInputDictionary>>- 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 FeatureInputDictionary>- Parameters:
feature- the feature to permute- Returns:
- a
FeatureListcontaining 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 delegatePermuteFeaturefor the given feature.- Parameters:
feature- the feature to permute- Returns:
- a new
PermuteFeatureinstance - Throws:
ProvisionFailedException- if the delegate cannot be created
-
configurePermuteProperty
protected abstract PermutePropertySequenceInteger configurePermuteProperty(PermutePropertySequenceInteger permuteProperty) Configures thePermutePropertySequenceIntegerfor 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
Featureinstance
-
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.
-