Class MarketDataPostProcessor

  • All Implemented Interfaces:
    ITenorUtilAware, ICustomParametersAware, IMarketDataRetrievalServiceAware, com.quartetfs.biz.pivot.postprocessing.IAggregatedMeasureAware, com.quartetfs.biz.pivot.postprocessing.IBasicPostProcessor<com.qfs.vector.IVector>, com.quartetfs.biz.pivot.postprocessing.IEvaluator<com.qfs.vector.IVector>, com.quartetfs.biz.pivot.postprocessing.IPartitionedPostProcessor<com.qfs.vector.IVector>, com.quartetfs.biz.pivot.postprocessing.IPostProcessor<com.qfs.vector.IVector>, com.quartetfs.fwk.types.IExtendedPluginValue, Serializable

    @QuartetExtendedPluginValue(intf=com.quartetfs.biz.pivot.postprocessing.IPostProcessor.class,
                                key="MARKETDATA_POSTPROCESSOR")
    public class MarketDataPostProcessor
    extends AMarketDataPostProcessor<com.qfs.vector.IVector>
    implements ITenorUtilAware
    Abstract Post-processor used to get market data for current and previous date values. It is implemented by DeltaGamma and Vega market data postprocessors.
    See Also:
    Serialized Form
    • Constructor Detail

      • MarketDataPostProcessor

        public MarketDataPostProcessor​(String name,
                                       com.quartetfs.biz.pivot.cube.hierarchy.measures.IPostProcessorCreationContext creationContext)
    • Method Detail

      • getPostProcessorDescription

        public static Function<com.activeviam.desc.build.ICanStartBuildingMeasures,​com.activeviam.desc.build.IHasAtLeastOneMeasure> getPostProcessorDescription​(String measureName,
                                                                                                                                                                      String underlyingMeasures,
                                                                                                                                                                      String asOfDateLevel,
                                                                                                                                                                      String marketDataSetLevel,
                                                                                                                                                                      String riskFactorLevel,
                                                                                                                                                                      String riskClassLevel,
                                                                                                                                                                      String dateInfo,
                                                                                                                                                                      String sensitivityName,
                                                                                                                                                                      BucketType[] bucketTypes,
                                                                                                                                                                      String marketDataStoreName,
                                                                                                                                                                      String sensitivityNameLevelInfo,
                                                                                                                                                                      Boolean interpolation,
                                                                                                                                                                      IMarketDataRetrievalService.MarketType typeOfMarketData,
                                                                                                                                                                      String interpolationDebugStringIdentifier,
                                                                                                                                                                      String formatter,
                                                                                                                                                                      String folder)
        This will create a PP configuration
        Parameters:
        measureName - Name of the postprocessor
        underlyingMeasures - The underlying measure
        asOfDateLevel - Level containing the asOfSDate
        marketDataSetLevel - Level containing the market data set level
        riskFactorLevel - risk factor level
        riskClassLevel - risk class level
        dateInfo - date info
        sensitivityName - sensitivity name
        bucketTypes - bucket types
        marketDataStoreName - market data store name
        sensitivityNameLevelInfo - sensitivity name level info
        interpolation - force interpolation or not, can be null, for configured interpolation
        typeOfMarketData - type of the returned market data : absolute, relative, raw(as is)
        interpolationDebugStringIdentifier - internal identifier used in the query cache. The keys in the query cache that will be used have the following pattern: measure name + identifier + location
        formatter - formatter
        folder - Folder name of the metric, if not provider aka null measure is invisible
        Returns:
        post processor description
      • measure

        public static com.activeviam.copper.api.CopperPostProcessor measure​(com.activeviam.copper.api.CopperMeasure underlyingMeasures,
                                                                            String asOfDateLevel,
                                                                            String marketDataSetLevel,
                                                                            String riskFactorLevel,
                                                                            String riskClassLevel,
                                                                            String dateInfo,
                                                                            String sensitivityName,
                                                                            BucketType[] bucketTypes,
                                                                            String marketDataStoreName,
                                                                            String sensitivityNameLevelInfo,
                                                                            Boolean interpolation,
                                                                            IMarketDataRetrievalService.MarketType typeOfMarketData,
                                                                            String interpolationDebugStringIdentifier)
        This will create a PP configuration
        Parameters:
        underlyingMeasures - The underlying measure
        asOfDateLevel - Level containing the asOfSDate
        marketDataSetLevel - Level containing the market data set level
        riskFactorLevel - risk factor level
        riskClassLevel - risk class level
        dateInfo - date info
        sensitivityName - sensitivity name
        bucketTypes - bucket types
        marketDataStoreName - market data store name
        sensitivityNameLevelInfo - sensitivity name level info
        interpolation - force interpolation or not, can be null, for configured interpolation
        typeOfMarketData - type of the returned market data : absolute, relative, raw(as is)
        interpolationDebugStringIdentifier - internal identifier used in the query cache. The keys in the query cache that will be used have the following pattern: measure name + identifier + location
        Returns:
        post processor description
      • init

        public void init​(Properties properties)
                  throws com.quartetfs.fwk.QuartetException
        Specified by:
        init in interface com.quartetfs.biz.pivot.postprocessing.IEvaluator<com.qfs.vector.IVector>
        Specified by:
        init in interface com.quartetfs.biz.pivot.postprocessing.IPostProcessor<com.qfs.vector.IVector>
        Overrides:
        init in class AMarketDataPostProcessor<com.qfs.vector.IVector>
        Throws:
        com.quartetfs.fwk.QuartetException
      • evaluate

        public com.qfs.vector.IVector evaluate​(com.quartetfs.biz.pivot.ILocation location,
                                               LocalDate asOfDate,
                                               String marketDataSet,
                                               String riskFactor,
                                               String riskClass,
                                               List<Object> leafCoordinatesSensi)
        There is only one underlying measure here: the Double Sensi Value .
        Specified by:
        evaluate in class AMarketDataPostProcessor<com.qfs.vector.IVector>
      • getType

        public String getType()
        Specified by:
        getType in interface com.quartetfs.fwk.types.IExtendedPluginValue