Interface FeatureCalculatorSingle<T extends FeatureInput>
- Type Parameters:
T- feature input-type
- All Known Implementing Classes:
FeatureCalculatorSingleChangeInput,FeatureCalculatorSingleFromMulti
public interface FeatureCalculatorSingle<T extends FeatureInput>
Like a
FeatureCalculator but is permanently associated with a single Feature.- Author:
- Owen Feehan
-
Method Summary
Modifier and TypeMethodDescriptiondoubleCalculate the results of the feature with a particular input.doublecalculateSuppressErrors(T input, ErrorReporter errorReporter) Calculates the result for aninputrecording the error to anErrorReporterif anything goes wrong, but throwing no exception.
-
Method Details
-
calculate
Calculate the results of the feature with a particular input.- Parameters:
input- the input to calculate.- Returns:
- the results of the calculation.
- Throws:
FeatureCalculationException- if the feature cannot be successfully calculated.
-
calculateSuppressErrors
Calculates the result for aninputrecording the error to anErrorReporterif anything goes wrong, but throwing no exception.- Parameters:
input- the input to calculate.errorReporter- where errors are recorded.- Returns:
- the result of the calculation.
-