Interface CalculationPartResolver<T extends FeatureInput>

Type Parameters:
T - feature input-type that also provides an input to the calculation
All Known Subinterfaces:
FeatureCalculator<T>

public interface CalculationPartResolver<T extends FeatureInput>
Searches a cache to reuses a CalculationPart if it already exists.

The purpose is to avoid repeating calculations that may be shared by more than one feature, or more than one parameterization of a feature

Author:
Owen Feehan
  • Method Details

    • search

      <S> ResolvedPart<S,T> search(CalculationPart<S,T> calculation)
      Searches for an equivalent calculation to calculation.
      Parameters:
      calculation - the feature-calculation to find an equivalent for.
      Returns:
      the corresponding resolved-calculation.
    • search

      <S, U> ResolvedPartMap<S,T,U> search(CalculationPartMap<S,T,U,FeatureCalculationException> calculation)
      Searches for an equivalent calculation to calculation.
      Parameters:
      calculation - the CalculationPartMap to find an equivalent for.
      Returns:
      the corresponding resolved-calculation.