Class MockFeatureWithCalculation

Object
org.anchoranalysis.bean.AnchorBean<B>
org.anchoranalysis.bean.initializable.InitializableBean<org.anchoranalysis.feature.bean.Feature<T>,​org.anchoranalysis.feature.initialization.FeatureInitialization>
org.anchoranalysis.feature.bean.Feature<T>
org.anchoranalysis.feature.bean.operator.FeatureGeneric<org.anchoranalysis.feature.input.FeatureInput>
org.anchoranalysis.test.feature.plugins.mockfeature.MockFeatureWithCalculation

public class MockFeatureWithCalculation
extends org.anchoranalysis.feature.bean.operator.FeatureGeneric<org.anchoranalysis.feature.input.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
    MockFeatureWithCalculation()  
  • Method Summary

    Modifier and Type Method Description
    protected double calculate​(org.anchoranalysis.feature.calculate.FeatureCalculationInput<org.anchoranalysis.feature.input.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

  • Method Details

    • calculate

      protected double calculate​(org.anchoranalysis.feature.calculate.FeatureCalculationInput<org.anchoranalysis.feature.input.FeatureInput> input) throws org.anchoranalysis.feature.calculate.FeatureCalculationException
      Specified by:
      calculate in class org.anchoranalysis.feature.bean.Feature<org.anchoranalysis.feature.input.FeatureInput>
      Throws:
      org.anchoranalysis.feature.calculate.FeatureCalculationException