T
- feature-input-typepublic abstract class FromDimensionsBase<T extends FeatureInputDimensions> extends Feature<T>
Dimensions
.Constructor and Description |
---|
FromDimensionsBase() |
Modifier and Type | Method and Description |
---|---|
double |
calculate(FeatureCalculationInput<T> input)
Calculates a value for some input.
|
protected abstract double |
calculateFromDimensions(Dimensions dimensions) |
Class<? extends FeatureInput> |
inputType()
The class corresponding to feature input-type.
|
assignTo, beforeCalc, calculateCheckInitialized, castAs, createListChildFeatures, describeBean, describeParameters, descriptionLong, duplicateChangeName, getCustomName, getFriendlyName, onInitialization, setCustomName, toString
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized
checkMisconfigured, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise
public double calculate(FeatureCalculationInput<T> input) throws FeatureCalculationException
Feature
calculate
in class Feature<T extends FeatureInputDimensions>
input
- the input to the calculation.FeatureCalculationException
- if the calculation cannot successfully complete.public Class<? extends FeatureInput> inputType()
Feature
i.e. corresponding to the T
template parameter.
inputType
in class Feature<T extends FeatureInputDimensions>
protected abstract double calculateFromDimensions(Dimensions dimensions) throws FeatureCalculationException
FeatureCalculationException
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.