Class PnlVectorFromRiskSensiPostProcessor

    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.quartetfs.biz.pivot.postprocessing.impl.ADynamicAggregationPostProcessor

        com.quartetfs.biz.pivot.postprocessing.impl.ADynamicAggregationPostProcessor.TransformationProcedure
      • Nested classes/interfaces inherited from class com.quartetfs.biz.pivot.postprocessing.impl.ABaseDynamicAggregationPostProcessor

        com.quartetfs.biz.pivot.postprocessing.impl.ABaseDynamicAggregationPostProcessor.DynamicAggregationPostProcessorPrefetcher
    • Constructor Summary

      Constructors 
      Constructor Description
      PnlVectorFromRiskSensiPostProcessor​(String name, com.quartetfs.biz.pivot.cube.hierarchy.measures.IPostProcessorCreationContext creationContext)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected com.qfs.vector.IVector evaluate​(com.quartetfs.biz.pivot.ILocation location, com.qfs.vector.IVector sensi, com.qfs.vector.IVector sensiLadder, LocalDate date, String riskFactor, String scenario, String marketDataSet, String riskClass, String sensitivityName, List<Object> leafCoordinates, boolean useLadder, String debugKey)  
      protected List<Map<String,​Integer>> getBucketsDefinition​(String sensitivityName)  
      protected com.qfs.vector.IVector getLocalSensi​(com.qfs.vector.IVector bucketsSensi, com.qfs.vector.IVector sensiLadder, com.quartetfs.fwk.IPair<Boolean,​double[]> ladderScale)
      The sensitivity vector or a dummy one if the ladders are activated
      protected IMarketDataRetrievalService.IPillarSet[] getOutputBuckets​(com.quartetfs.biz.pivot.ILocation location, List<Map<String,​Integer>> bucketsDefinition, List<Object> leafCoordinates)  
      protected int[] getPnlToSensiMapping​(com.quartetfs.biz.pivot.ILocation location, List<Map<String,​Integer>> bucketsDefinition, int size)  
      static Function<com.activeviam.desc.build.ICanStartBuildingMeasures,​com.activeviam.desc.build.IHasAtLeastOneMeasure> getPostProcessorDescription​(String measureName, String sensiValueMeasure, String sensiLadderMeasure, String asOfDateLevel, String riskFactorLevel, String riskClassLevel, String sensitivityNameLevel, String[] tenorAnalysisLevel, String scenarioLevel, String marketDataSetLevel, String sensitivityName, String ladderAvailabilityLevel, BucketType[] bucketTypes, String formatter, String folder)  
      String getType()  
      void init​(Properties properties)  
      static com.activeviam.copper.api.CopperMeasure measure​(com.activeviam.copper.api.CopperMeasure sensiValueMeasure, com.activeviam.copper.api.CopperMeasure sensiLadderMeasure, String asOfDateLevel, String riskFactorLevel, String riskClassLevel, String sensitivityNameLevel, String[] tenorAnalysisLevel, String scenarioLevel, String marketDataSetLevel, String sensitivityName, String ladderAvailabilityLevel, BucketType[] bucketTypes)  
      void setTenorUtil​(ITenorUtil tenorUtil)
      Set the implementation of ITenorUtil
      • Methods inherited from class com.quartetfs.biz.pivot.postprocessing.impl.ADynamicAggregationPostProcessor

        createLeafEvaluationProcedure, evaluateLeaf
      • Methods inherited from class com.quartetfs.biz.pivot.postprocessing.impl.ABaseDynamicAggregationPostProcessor

        checkLeafType, checkPrefetchers, compute, computeLeafType, computeLeafTypeFromGenericType, computePartitioningLevels, computePrefetchFilter, createAggregationFunction, createPrefetchers, getAggregationFunction, getHierarchiesInfo, getLeafLevelsInfo, getLeafType, getTypeFromLiteralType, handleNoLeafLevel, initializeLeafLevels, initializeUnderlyingMeasures, reduce, reduceLeavesAndContribute, retrieveLeaves, setPartitioningLevels, supportsAnalysisLevels
      • Methods inherited from class com.quartetfs.biz.pivot.postprocessing.impl.AAdvancedPostProcessor

        addContextDependency, checkInterruption, checkOutputType, computeNamePath, computeOutputType, createEvaluator, expandResult, getActivePivot, getContext, getContextDependencies, getContinuousQueryHandlerKeys, getCurrentMeasure, getDatastoreVersion, getDerivedContextDependencies, getExpansionProcedure, getGenericOutputType, getMeasuresProvider, getName, getOutputType, getOutputTypeFromGenericClassParameter, getOutputTypeFromProperties, getPrefetchers, getProperties, getQueryCache, getTypeFromClass, handleCircularDependency, handleNotSupportedAnalysisLevels, handleUnknownUnderlyingMeasure, hideEvaluator, initializeContinuousQueryHandlerKeys, removeAnalysisLevelsFromFilter, restrictLocationAnalysisLevels, retrieveAnalysisLevelsToExpand, retrieveNamedPrefetchAggregatesWithAnalysisLevels, retrievePrefetchAggregates, retrievePrefetchAggregatesWithAnalysisLevels, setAggregatedMeasureName, toString
      • Methods inherited from interface com.quartetfs.biz.pivot.postprocessing.IPostProcessor

        getContextDependencies, getContinuousQueryHandlerKeys, getName, getOutputType, getPrefetchers, getProperties
    • Constructor Detail

      • PnlVectorFromRiskSensiPostProcessor

        public PnlVectorFromRiskSensiPostProcessor​(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 sensiValueMeasure,
                                                                                                                                                                      String sensiLadderMeasure,
                                                                                                                                                                      String asOfDateLevel,
                                                                                                                                                                      String riskFactorLevel,
                                                                                                                                                                      String riskClassLevel,
                                                                                                                                                                      String sensitivityNameLevel,
                                                                                                                                                                      String[] tenorAnalysisLevel,
                                                                                                                                                                      String scenarioLevel,
                                                                                                                                                                      String marketDataSetLevel,
                                                                                                                                                                      String sensitivityName,
                                                                                                                                                                      String ladderAvailabilityLevel,
                                                                                                                                                                      BucketType[] bucketTypes,
                                                                                                                                                                      String formatter,
                                                                                                                                                                      String folder)
      • measure

        public static com.activeviam.copper.api.CopperMeasure measure​(com.activeviam.copper.api.CopperMeasure sensiValueMeasure,
                                                                      com.activeviam.copper.api.CopperMeasure sensiLadderMeasure,
                                                                      String asOfDateLevel,
                                                                      String riskFactorLevel,
                                                                      String riskClassLevel,
                                                                      String sensitivityNameLevel,
                                                                      String[] tenorAnalysisLevel,
                                                                      String scenarioLevel,
                                                                      String marketDataSetLevel,
                                                                      String sensitivityName,
                                                                      String ladderAvailabilityLevel,
                                                                      BucketType[] bucketTypes)
      • getType

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

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

        protected com.qfs.vector.IVector getLocalSensi​(com.qfs.vector.IVector bucketsSensi,
                                                       com.qfs.vector.IVector sensiLadder,
                                                       com.quartetfs.fwk.IPair<Boolean,​double[]> ladderScale)
        The sensitivity vector or a dummy one if the ladders are activated
        Parameters:
        bucketsSensi - the sensi vector
        sensiLadder - the sensi ladder
        ladderScale - the size of the ladder
        Returns:
        a sensi vector
      • getPnlToSensiMapping

        protected int[] getPnlToSensiMapping​(com.quartetfs.biz.pivot.ILocation location,
                                             List<Map<String,​Integer>> bucketsDefinition,
                                             int size)