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
    void checkMisconfigured​(org.anchoranalysis.bean.BeanInstanceMap defaultInstances)  
    protected abstract org.anchoranalysis.bean.permute.property.PermutePropertySequenceInteger configurePermuteProperty​(org.anchoranalysis.bean.permute.property.PermutePropertySequenceInteger permuteProperty)
    Configures the PermutePropertySequenceInteger for this permutation.
    protected abstract PermuteFeature<Integer,​T> createDelegate​(org.anchoranalysis.feature.bean.Feature<T> feature)
    Creates a delegate PermuteFeature for 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.
    String getParamPrefix()
    Prefix for the parameter key.
    org.anchoranalysis.bean.permute.property.PermutePropertySequenceInteger getPermuteProperty()
    Defines how to permute the property with a sequence of integers.
    void setParamPrefix​(String paramPrefix)
    Prefix for the parameter key.
    void setPermuteProperty​(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, 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

  • Method Details

    • checkMisconfigured

      public void checkMisconfigured​(org.anchoranalysis.bean.BeanInstanceMap defaultInstances) throws org.anchoranalysis.bean.exception.BeanMisconfiguredException
      Overrides:
      checkMisconfigured in class org.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.ProvisionFailedException
      Description copied from class: PermuteFeatureBase
      Creates permuted features for the given feature.
      Specified by:
      createPermutedFeaturesFor in class PermuteFeatureBase<T extends org.anchoranalysis.feature.input.FeatureInputDictionary>
      Parameters:
      feature - the feature to permute
      Returns:
      a FeatureList containing 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.ProvisionFailedException
      Creates a delegate PermuteFeature for the given feature.
      Parameters:
      feature - the feature to permute
      Returns:
      a new PermuteFeature instance
      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 the PermutePropertySequenceInteger for 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 key
      appendNumber - whether to append a number to the key
      Returns:
      a new Feature instance
    • getParamPrefix

      public String getParamPrefix()
      Prefix for the parameter key.
    • setParamPrefix

      public void setParamPrefix​(String paramPrefix)
      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.