Class AbstractDerivedCalculationFunction<T extends CalculationTarget,​R>

    • Constructor Detail

      • AbstractDerivedCalculationFunction

        protected AbstractDerivedCalculationFunction​(java.lang.Class<T> targetType,
                                                     Measure measure,
                                                     Measure... requiredMeasures)
        Creates a new function which calculates one measure for targets of one type.
        Parameters:
        targetType - the target type handled by the function, often a trade
        measure - the measure calculated by the function
        requiredMeasures - the measures required as inputs to the calculation
      • AbstractDerivedCalculationFunction

        protected AbstractDerivedCalculationFunction​(java.lang.Class<T> targetType,
                                                     Measure measure,
                                                     java.util.Set<Measure> requiredMeasures)
        Creates a new function which calculates one measure for targets of one type.
        Parameters:
        targetType - the target type handled by the function, often a trade
        measure - the measure calculated by the function
        requiredMeasures - the measures required as inputs to the calculation