Class MockFeatureWithCalculation

Object
AnchorBean<Feature<FeatureInput>>
InitializableBean<Feature<FeatureInput>, FeatureInitialization>
Feature<FeatureInput>
FeatureGeneric<FeatureInput>
MockFeatureWithCalculation

public class MockFeatureWithCalculation extends FeatureGeneric<FeatureInput>
A feature that returns the number-of-voxels in an object by using am internal mock-calculation.

Warning! Method calls are counted via ugly static variable implementation.

Author:
Owen Feehan
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected double
    calculate(FeatureCalculationInput<FeatureInput> input)
     

    Methods inherited from class org.anchoranalysis.feature.bean.operator.FeatureGeneric

    inputType

    Methods inherited from class org.anchoranalysis.feature.bean.Feature

    assignTo, beforeCalc, calculateCheckInitialized, castAs, createListChildFeatures, describeBean, describeParameters, descriptionLong, duplicateChangeName, getCustomName, getFriendlyName, onInitialization, setCustomName, toString

    Methods inherited from class org.anchoranalysis.bean.initializable.InitializableBean

    getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized

    Methods inherited from class org.anchoranalysis.bean.AnchorBean

    checkMisconfigured, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise

    Methods inherited from class java.lang.Object

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

    • MockFeatureWithCalculation

      public MockFeatureWithCalculation()
  • Method Details

    • calculate

      protected double calculate(FeatureCalculationInput<FeatureInput> input) throws FeatureCalculationException
      Specified by:
      calculate in class Feature<FeatureInput>
      Throws:
      FeatureCalculationException