Class PermuteFeatureSequenceInteger<T extends org.anchoranalysis.feature.input.FeatureInputDictionary>
Object
org.anchoranalysis.bean.AnchorBean<B>
org.anchoranalysis.bean.initializable.InitializableBean<T,org.anchoranalysis.feature.initialization.FeatureRelatedInitialization>
org.anchoranalysis.feature.bean.FeatureRelatedBean<B>
org.anchoranalysis.feature.bean.provider.FeatureProviderBean<org.anchoranalysis.feature.bean.list.FeatureListProvider<T>,org.anchoranalysis.feature.bean.list.FeatureList<T>>
org.anchoranalysis.feature.bean.list.FeatureListProvider<T>
org.anchoranalysis.plugin.image.feature.bean.list.permute.PermuteFeatureBase<T>
org.anchoranalysis.plugin.image.feature.bean.list.permute.PermuteFeatureSequenceInteger<T>
- Type Parameters:
T- feature-input type
- All Implemented Interfaces:
org.anchoranalysis.bean.Provider<org.anchoranalysis.feature.bean.list.FeatureList<T>>
- Direct Known Subclasses:
PermuteDivideByParam,PermuteFirstSecondOrder
public abstract class PermuteFeatureSequenceInteger<T extends org.anchoranalysis.feature.input.FeatureInputDictionary> extends PermuteFeatureBase<T>
Permutes a property on a feature with a sequence of integers.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description PermuteFeatureSequenceInteger() -
Method Summary
Modifier and Type Method Description voidcheckMisconfigured(org.anchoranalysis.bean.BeanInstanceMap defaultInstances)protected abstract org.anchoranalysis.bean.permute.property.PermutePropertySequenceIntegerconfigurePermuteProperty(org.anchoranalysis.bean.permute.property.PermutePropertySequenceInteger permuteProperty)Configures thePermutePropertySequenceIntegerfor this permutation.protected abstract PermuteFeature<Integer,T>createDelegate(org.anchoranalysis.feature.bean.Feature<T> feature)Creates a delegatePermuteFeaturefor the given feature.protected org.anchoranalysis.feature.bean.Feature<T>createParam(String suffix, boolean appendNumber)Creates a parameter feature for the permutation.protected org.anchoranalysis.feature.bean.list.FeatureList<T>createPermutedFeaturesFor(org.anchoranalysis.feature.bean.Feature<T> feature)Creates permuted features for the given feature.StringgetParamPrefix()Prefix for the parameter key.org.anchoranalysis.bean.permute.property.PermutePropertySequenceIntegergetPermuteProperty()Defines how to permute the property with a sequence of integers.voidsetParamPrefix(String paramPrefix)Prefix for the parameter key.voidsetPermuteProperty(org.anchoranalysis.bean.permute.property.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, onInitialization
-
Constructor Details
-
PermuteFeatureSequenceInteger
public PermuteFeatureSequenceInteger()
-
-
Method Details
-
checkMisconfigured
public void checkMisconfigured(org.anchoranalysis.bean.BeanInstanceMap defaultInstances) throws org.anchoranalysis.bean.exception.BeanMisconfiguredException- Overrides:
checkMisconfiguredin classorg.anchoranalysis.bean.AnchorBean<org.anchoranalysis.feature.bean.list.FeatureListProvider<T extends org.anchoranalysis.feature.input.FeatureInputDictionary>>- Throws:
org.anchoranalysis.bean.exception.BeanMisconfiguredException
-
createPermutedFeaturesFor
protected org.anchoranalysis.feature.bean.list.FeatureList<T> createPermutedFeaturesFor(org.anchoranalysis.feature.bean.Feature<T> feature) throws org.anchoranalysis.bean.xml.exception.ProvisionFailedExceptionDescription copied from class:PermuteFeatureBaseCreates permuted features for the given feature.- Specified by:
createPermutedFeaturesForin classPermuteFeatureBase<T extends org.anchoranalysis.feature.input.FeatureInputDictionary>- Parameters:
feature- the feature to permute- Returns:
- a
FeatureListcontaining the permuted features - Throws:
org.anchoranalysis.bean.xml.exception.ProvisionFailedException- if the permuted features cannot be created
-
createDelegate
protected abstract PermuteFeature<Integer,T> createDelegate(org.anchoranalysis.feature.bean.Feature<T> feature) throws org.anchoranalysis.bean.xml.exception.ProvisionFailedExceptionCreates a delegatePermuteFeaturefor the given feature.- Parameters:
feature- the feature to permute- Returns:
- a new
PermuteFeatureinstance - Throws:
org.anchoranalysis.bean.xml.exception.ProvisionFailedException- if the delegate cannot be created
-
configurePermuteProperty
protected abstract org.anchoranalysis.bean.permute.property.PermutePropertySequenceInteger configurePermuteProperty(org.anchoranalysis.bean.permute.property.PermutePropertySequenceInteger permuteProperty)Configures thePermutePropertySequenceIntegerfor this permutation.- Parameters:
permuteProperty- the property to configure- Returns:
- the configured
PermutePropertySequenceInteger
-
createParam
protected org.anchoranalysis.feature.bean.Feature<T> createParam(String suffix, boolean appendNumber)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
public org.anchoranalysis.bean.permute.property.PermutePropertySequenceInteger getPermuteProperty()Defines how to permute the property with a sequence of integers. -
setPermuteProperty
public void setPermuteProperty(org.anchoranalysis.bean.permute.property.PermutePropertySequenceInteger permuteProperty)Defines how to permute the property with a sequence of integers.
-