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 TypeMethodDescriptiondouble
Calculate the results of the feature with a particular input.double
calculateSuppressErrors
(T input, ErrorReporter errorReporter) Calculates the result for aninput
recording the error to anErrorReporter
if 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 aninput
recording the error to anErrorReporter
if anything goes wrong, but throwing no exception.- Parameters:
input
- the input to calculate.errorReporter
- where errors are recorded.- Returns:
- the result of the calculation.
-