Interface SensitivityCsvInfoSupplier


  • public interface SensitivityCsvInfoSupplier
    Resolves additional information when writing sensitivity CSV files.

    This allows additional CSV columns to be written.

    • Method Detail

      • standard

        static SensitivityCsvInfoSupplier standard()
        Obtains an instance that uses the standard set of reference data.
        Returns:
        the loader
      • headers

        default java.util.List<java.lang.String> headers​(CurveSensitivities curveSens)
        Returns the list of additional headers this supplier provides.
        Parameters:
        curveSens - the curve sensitivities to output
        Returns:
        the list of additional headers
      • values

        default java.util.List<java.lang.String> values​(java.util.List<java.lang.String> additionalHeaders,
                                                        CurveSensitivities curveSens,
                                                        CurrencyParameterSensitivity paramSens)
        Gets the values associated with the headers.

        This must return a list of the same size as additionalHeaders where each element in the list is the value for the matching header.

        This will be invoked once for each CurrencyParameterSensitivity in the CurveSensitivities.

        Parameters:
        additionalHeaders - the additional headers
        curveSens - the curve sensitivities to output
        paramSens - the parameter sensitivities to output
        Returns:
        the value for the specified header, not null