RatesBasket.java

  1. package org.drip.product.rates;

  2. /*
  3.  * -*- mode: java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
  4.  */

  5. /*!
  6.  * Copyright (C) 2020 Lakshmi Krishnamurthy
  7.  * Copyright (C) 2019 Lakshmi Krishnamurthy
  8.  * Copyright (C) 2018 Lakshmi Krishnamurthy
  9.  * Copyright (C) 2017 Lakshmi Krishnamurthy
  10.  * Copyright (C) 2016 Lakshmi Krishnamurthy
  11.  * Copyright (C) 2015 Lakshmi Krishnamurthy
  12.  * Copyright (C) 2014 Lakshmi Krishnamurthy
  13.  * Copyright (C) 2013 Lakshmi Krishnamurthy
  14.  *
  15.  *  This file is part of DROP, an open-source library targeting analytics/risk, transaction cost analytics,
  16.  *      asset liability management analytics, capital, exposure, and margin analytics, valuation adjustment
  17.  *      analytics, and portfolio construction analytics within and across fixed income, credit, commodity,
  18.  *      equity, FX, and structured products. It also includes auxiliary libraries for algorithm support,
  19.  *      numerical analysis, numerical optimization, spline builder, model validation, statistical learning,
  20.  *      and computational support.
  21.  *  
  22.  *      https://lakshmidrip.github.io/DROP/
  23.  *  
  24.  *  DROP is composed of three modules:
  25.  *  
  26.  *  - DROP Product Core - https://lakshmidrip.github.io/DROP-Product-Core/
  27.  *  - DROP Portfolio Core - https://lakshmidrip.github.io/DROP-Portfolio-Core/
  28.  *  - DROP Computational Core - https://lakshmidrip.github.io/DROP-Computational-Core/
  29.  *
  30.  *  DROP Product Core implements libraries for the following:
  31.  *  - Fixed Income Analytics
  32.  *  - Loan Analytics
  33.  *  - Transaction Cost Analytics
  34.  *
  35.  *  DROP Portfolio Core implements libraries for the following:
  36.  *  - Asset Allocation Analytics
  37.  *  - Asset Liability Management Analytics
  38.  *  - Capital Estimation Analytics
  39.  *  - Exposure Analytics
  40.  *  - Margin Analytics
  41.  *  - XVA Analytics
  42.  *
  43.  *  DROP Computational Core implements libraries for the following:
  44.  *  - Algorithm Support
  45.  *  - Computation Support
  46.  *  - Function Analysis
  47.  *  - Model Validation
  48.  *  - Numerical Analysis
  49.  *  - Numerical Optimizer
  50.  *  - Spline Builder
  51.  *  - Statistical Learning
  52.  *
  53.  *  Documentation for DROP is Spread Over:
  54.  *
  55.  *  - Main                     => https://lakshmidrip.github.io/DROP/
  56.  *  - Wiki                     => https://github.com/lakshmiDRIP/DROP/wiki
  57.  *  - GitHub                   => https://github.com/lakshmiDRIP/DROP
  58.  *  - Repo Layout Taxonomy     => https://github.com/lakshmiDRIP/DROP/blob/master/Taxonomy.md
  59.  *  - Javadoc                  => https://lakshmidrip.github.io/DROP/Javadoc/index.html
  60.  *  - Technical Specifications => https://github.com/lakshmiDRIP/DROP/tree/master/Docs/Internal
  61.  *  - Release Versions         => https://lakshmidrip.github.io/DROP/version.html
  62.  *  - Community Credits        => https://lakshmidrip.github.io/DROP/credits.html
  63.  *  - Issues Catalog           => https://github.com/lakshmiDRIP/DROP/issues
  64.  *  - JUnit                    => https://lakshmidrip.github.io/DROP/junit/index.html
  65.  *  - Jacoco                   => https://lakshmidrip.github.io/DROP/jacoco/index.html
  66.  *
  67.  *  Licensed under the Apache License, Version 2.0 (the "License");
  68.  *      you may not use this file except in compliance with the License.
  69.  *  
  70.  *  You may obtain a copy of the License at
  71.  *      http://www.apache.org/licenses/LICENSE-2.0
  72.  *  
  73.  *  Unless required by applicable law or agreed to in writing, software
  74.  *      distributed under the License is distributed on an "AS IS" BASIS,
  75.  *      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  76.  *  
  77.  *  See the License for the specific language governing permissions and
  78.  *      limitations under the License.
  79.  */

  80. /**
  81.  * <i>RatesBasket</i> contains the implementation of the Basket of Rates Component legs. RatesBasket is made
  82.  * from zero/more fixed and floating streams. It exports the following functionality:
  83.  *
  84.  * <br><br>
  85.  *  <ul>
  86.  *      <li>
  87.  *          Standard/Custom Constructor for the RatesBasket
  88.  *      </li>
  89.  *      <li>
  90.  *          Dates: Effective, Maturity, Coupon dates and Product settlement Parameters
  91.  *      </li>
  92.  *      <li>
  93.  *          Coupon/Notional Outstanding as well as schedules
  94.  *      </li>
  95.  *      <li>
  96.  *          Retrieve the constituent fixed and floating streams
  97.  *      </li>
  98.  *      <li>
  99.  *          Market Parameters: Discount, Forward, Credit, Treasury Curves
  100.  *      </li>
  101.  *      <li>
  102.  *          Cash Flow Periods: Coupon flows and (Optionally) Loss Flows
  103.  *      </li>
  104.  *      <li>
  105.  *          Valuation: Named Measure Generation
  106.  *      </li>
  107.  *      <li>
  108.  *          Calibration: The codes and constraints generation
  109.  *      </li>
  110.  *      <li>
  111.  *          Jacobians: Quote/DF and PV/DF micro-Jacobian generation
  112.  *      </li>
  113.  *      <li>
  114.  *          Serialization into and de-serialization out of byte arrays
  115.  *      </li>
  116.  *  </ul>
  117.  *
  118.  * <br><br>
  119.  *  <ul>
  120.  *      <li><b>Module </b> = <a href = "https://github.com/lakshmiDRIP/DROP/tree/master/ProductCore.md">Product Core Module</a></li>
  121.  *      <li><b>Library</b> = <a href = "https://github.com/lakshmiDRIP/DROP/tree/master/FixedIncomeAnalyticsLibrary.md">Fixed Income Analytics</a></li>
  122.  *      <li><b>Project</b> = <a href = "https://github.com/lakshmiDRIP/DROP/tree/master/src/main/java/org/drip/product/README.md">Product Components/Baskets for Credit, FRA, FX, Govvie, Rates, and Option AssetClasses</a></li>
  123.  *      <li><b>Package</b> = <a href = "https://github.com/lakshmiDRIP/DROP/tree/master/src/main/java/org/drip/product/rates/README.md">Fixed Income Multi-Stream Components</a></li>
  124.  *  </ul>
  125.  * <br><br>
  126.  *
  127.  * @author Lakshmi Krishnamurthy
  128.  */

  129. public class RatesBasket extends org.drip.product.definition.CalibratableComponent {
  130.     private java.lang.String _strName = "";
  131.     private org.drip.product.rates.Stream[] _aCompFixedStream = null;
  132.     private org.drip.product.rates.Stream[] _aCompFloatStream = null;

  133.     /**
  134.      * RatesBasket constructor
  135.      *
  136.      * @param strName Basket Name
  137.      * @param aCompFixedStream Array of Fixed Stream Components
  138.      * @param aCompFloatStream Array of Float Stream Components
  139.      *
  140.      * @throws java.lang.Exception Thrown if the inputs are invalid
  141.      */

  142.     public RatesBasket (
  143.         final java.lang.String strName,
  144.         final org.drip.product.rates.Stream[] aCompFixedStream,
  145.         final org.drip.product.rates.Stream[] aCompFloatStream)
  146.         throws java.lang.Exception
  147.     {
  148.         if (null == (_strName = strName) || _strName.isEmpty() || null == (_aCompFixedStream =
  149.             aCompFixedStream) || 0 == _aCompFixedStream.length || null == (_aCompFloatStream =
  150.                 aCompFloatStream) || 0 == _aCompFloatStream.length)
  151.             throw new java.lang.Exception ("RatesBasket ctr => Invalid Inputs");
  152.     }

  153.     @Override public java.lang.String name()
  154.     {
  155.         return _strName;
  156.     }

  157.     @Override public java.lang.String primaryCode()
  158.     {
  159.         return _strName;
  160.     }


  161.     /**
  162.      * Retrieve the array of the fixed stream components
  163.      *
  164.      * @return The array of the fixed stream components
  165.      */

  166.     public org.drip.product.rates.Stream[] getFixedStreamComponents()
  167.     {
  168.         return _aCompFixedStream;
  169.     }

  170.     /**
  171.      * Retrieve the array of the float stream components
  172.      *
  173.      * @return The array of the float stream components
  174.      */

  175.     public org.drip.product.rates.Stream[] getFloatStreamComponents()
  176.     {
  177.         return _aCompFloatStream;
  178.     }

  179.     @Override public org.drip.analytics.support.CaseInsensitiveTreeMap<java.lang.String> couponCurrency()
  180.     {
  181.         org.drip.analytics.support.CaseInsensitiveTreeMap<java.lang.String> mapCouponCurrency = new
  182.             org.drip.analytics.support.CaseInsensitiveTreeMap<java.lang.String>();

  183.         if (null != _aCompFixedStream) {
  184.             int iFixedStreamLength = _aCompFixedStream.length;

  185.             if (0 != iFixedStreamLength) {
  186.                 for (int i = 0; i < iFixedStreamLength; ++i)
  187.                     mapCouponCurrency.put ("FIXED" + i, _aCompFixedStream[i].couponCurrency());
  188.             }
  189.         }

  190.         if (null != _aCompFloatStream) {
  191.             int iFloatStreamLength = _aCompFloatStream.length;

  192.             if (0 != iFloatStreamLength) {
  193.                 for (int i = 0; i < iFloatStreamLength; ++i)
  194.                     mapCouponCurrency.put ("FLOAT" + i, _aCompFloatStream[i].couponCurrency());
  195.             }
  196.         }

  197.         return mapCouponCurrency;
  198.     }

  199.     @Override public java.lang.String payCurrency()
  200.     {
  201.         if (null != _aCompFixedStream && 0 != _aCompFixedStream.length)
  202.             return _aCompFixedStream[0].payCurrency();

  203.         if (null != _aCompFloatStream && 0 != _aCompFloatStream.length)
  204.             return _aCompFloatStream[0].payCurrency();

  205.         return null;
  206.     }

  207.     @Override public java.lang.String principalCurrency()
  208.     {
  209.         return null;
  210.     }

  211.     @Override public org.drip.state.identifier.EntityCDSLabel creditLabel()
  212.     {
  213.         if (null != _aCompFixedStream && 0 != _aCompFixedStream.length) {
  214.             for (org.drip.product.rates.Stream fixedStream : _aCompFixedStream) {
  215.                 org.drip.state.identifier.EntityCDSLabel creditLabel = fixedStream.creditLabel();

  216.                 if (null != creditLabel) return creditLabel;
  217.             }
  218.         }

  219.         if (null != _aCompFloatStream && 0 != _aCompFloatStream.length) {
  220.             for (org.drip.product.rates.Stream floatStream : _aCompFloatStream) {
  221.                 org.drip.state.identifier.EntityCDSLabel creditLabel = floatStream.creditLabel();

  222.                 if (null != creditLabel) return creditLabel;
  223.             }
  224.         }

  225.         return null;
  226.     }

  227.     @Override public
  228.         org.drip.analytics.support.CaseInsensitiveTreeMap<org.drip.state.identifier.ForwardLabel>
  229.             forwardLabel()
  230.     {
  231.         int iNumFloatStream = null == _aCompFloatStream ? 0 : _aCompFloatStream.length;

  232.         if (0 == iNumFloatStream) return null;

  233.         org.drip.analytics.support.CaseInsensitiveTreeMap<org.drip.state.identifier.ForwardLabel>
  234.             mapForwardLabel = new
  235.                 org.drip.analytics.support.CaseInsensitiveTreeMap<org.drip.state.identifier.ForwardLabel>();

  236.         for (int i = 0; i < iNumFloatStream; ++i)
  237.             mapForwardLabel.put ("FLOAT" + i, _aCompFloatStream[i].forwardLabel());

  238.         return mapForwardLabel;
  239.     }

  240.     @Override public
  241.         org.drip.analytics.support.CaseInsensitiveTreeMap<org.drip.state.identifier.OTCFixFloatLabel>
  242.             otcFixFloatLabel()
  243.     {
  244.         int iNumFloatStream = null == _aCompFloatStream ? 0 : _aCompFloatStream.length;

  245.         if (0 == iNumFloatStream) return null;

  246.         org.drip.analytics.support.CaseInsensitiveTreeMap<org.drip.state.identifier.OTCFixFloatLabel>
  247.             mapOTCFixFloatLabel = new
  248.                 org.drip.analytics.support.CaseInsensitiveTreeMap<org.drip.state.identifier.OTCFixFloatLabel>();

  249.         for (int i = 0; i < iNumFloatStream; ++i)
  250.             mapOTCFixFloatLabel.put ("FLOAT" + i, _aCompFloatStream[i].otcFixFloatLabel());

  251.         return mapOTCFixFloatLabel;
  252.     }

  253.     @Override public org.drip.state.identifier.FundingLabel fundingLabel()
  254.     {
  255.         return org.drip.state.identifier.FundingLabel.Standard (payCurrency());
  256.     }

  257.     @Override public org.drip.state.identifier.GovvieLabel govvieLabel()
  258.     {
  259.         return org.drip.state.identifier.GovvieLabel.Standard (payCurrency());
  260.     }

  261.     @Override public org.drip.analytics.support.CaseInsensitiveTreeMap<org.drip.state.identifier.FXLabel>
  262.         fxLabel()
  263.     {
  264.         int iNumFixedStream = null == _aCompFixedStream ? 0 : _aCompFixedStream.length;
  265.         int iNumFloatStream = null == _aCompFloatStream ? 0 : _aCompFloatStream.length;

  266.         if (0 == iNumFixedStream && 0 == iNumFloatStream) return null;

  267.         org.drip.analytics.support.CaseInsensitiveTreeMap<org.drip.state.identifier.FXLabel> mapFXLabel = new
  268.             org.drip.analytics.support.CaseInsensitiveTreeMap<org.drip.state.identifier.FXLabel>();

  269.         for (int i = 0; i < iNumFixedStream; ++i) {
  270.             org.drip.state.identifier.FXLabel fxLabel = _aCompFixedStream[i].fxLabel();

  271.             if (null != fxLabel) mapFXLabel.put ("FIXED" + i, fxLabel);
  272.         }

  273.         for (int i = 0; i < iNumFloatStream; ++i) {
  274.             org.drip.state.identifier.FXLabel fxLabel = _aCompFloatStream[i].fxLabel();

  275.             if (null != fxLabel) mapFXLabel.put ("FLOAT" + i, fxLabel);
  276.         }

  277.         return mapFXLabel;
  278.     }

  279.     @Override public
  280.         org.drip.analytics.support.CaseInsensitiveTreeMap<org.drip.state.identifier.VolatilityLabel>
  281.             volatilityLabel()
  282.     {
  283.         return null;
  284.     }

  285.     @Override public void setPrimaryCode (
  286.         final java.lang.String strCode)
  287.     {
  288.     }

  289.     @Override public org.drip.numerical.differentiation.WengertJacobian jackDDirtyPVDManifestMeasure (
  290.         final org.drip.param.valuation.ValuationParams valParams,
  291.         final org.drip.param.pricer.CreditPricerParams pricerParams,
  292.         final org.drip.param.market.CurveSurfaceQuoteContainer csqs,
  293.         final org.drip.param.valuation.ValuationCustomizationParams quotingParams)
  294.     {
  295.         return null;
  296.     }

  297.     @Override public org.drip.numerical.differentiation.WengertJacobian manifestMeasureDFMicroJack (
  298.         final java.lang.String strMainfestMeasure,
  299.         final org.drip.param.valuation.ValuationParams valParams,
  300.         final org.drip.param.pricer.CreditPricerParams pricerParams,
  301.         final org.drip.param.market.CurveSurfaceQuoteContainer csqs,
  302.         final org.drip.param.valuation.ValuationCustomizationParams quotingParams)
  303.     {
  304.         return null;
  305.     }

  306.     @Override public org.drip.product.calib.ProductQuoteSet calibQuoteSet (
  307.         final org.drip.state.representation.LatentStateSpecification[] aLSS)
  308.     {
  309.         return null;
  310.     }

  311.     @Override public org.drip.state.estimator.PredictorResponseWeightConstraint fundingPRWC (
  312.         final org.drip.param.valuation.ValuationParams valParams,
  313.         final org.drip.param.pricer.CreditPricerParams pricerParams,
  314.         final org.drip.param.market.CurveSurfaceQuoteContainer csqs,
  315.         final org.drip.param.valuation.ValuationCustomizationParams quotingParams,
  316.         final org.drip.product.calib.ProductQuoteSet pqs)
  317.     {
  318.         return null;
  319.     }

  320.     @Override public org.drip.state.estimator.PredictorResponseWeightConstraint forwardPRWC (
  321.         final org.drip.param.valuation.ValuationParams valParams,
  322.         final org.drip.param.pricer.CreditPricerParams pricerParams,
  323.         final org.drip.param.market.CurveSurfaceQuoteContainer csqs,
  324.         final org.drip.param.valuation.ValuationCustomizationParams quotingParams,
  325.         final org.drip.product.calib.ProductQuoteSet pqs)
  326.     {
  327.         return null;
  328.     }

  329.     @Override public org.drip.state.estimator.PredictorResponseWeightConstraint fundingForwardPRWC (
  330.         final org.drip.param.valuation.ValuationParams valParams,
  331.         final org.drip.param.pricer.CreditPricerParams pricerParams,
  332.         final org.drip.param.market.CurveSurfaceQuoteContainer csqs,
  333.         final org.drip.param.valuation.ValuationCustomizationParams quotingParams,
  334.         final org.drip.product.calib.ProductQuoteSet pqs)
  335.     {
  336.         return null;
  337.     }

  338.     @Override public org.drip.state.estimator.PredictorResponseWeightConstraint fxPRWC (
  339.         final org.drip.param.valuation.ValuationParams valParams,
  340.         final org.drip.param.pricer.CreditPricerParams pricerParams,
  341.         final org.drip.param.market.CurveSurfaceQuoteContainer csqs,
  342.         final org.drip.param.valuation.ValuationCustomizationParams vcp,
  343.         final org.drip.product.calib.ProductQuoteSet pqs)
  344.     {
  345.         return null;
  346.     }

  347.     @Override public org.drip.state.estimator.PredictorResponseWeightConstraint govviePRWC (
  348.         final org.drip.param.valuation.ValuationParams valParams,
  349.         final org.drip.param.pricer.CreditPricerParams pricerParams,
  350.         final org.drip.param.market.CurveSurfaceQuoteContainer csqs,
  351.         final org.drip.param.valuation.ValuationCustomizationParams vcp,
  352.         final org.drip.product.calib.ProductQuoteSet pqs)
  353.     {
  354.         return null;
  355.     }

  356.     @Override public org.drip.state.estimator.PredictorResponseWeightConstraint volatilityPRWC (
  357.         final org.drip.param.valuation.ValuationParams valParams,
  358.         final org.drip.param.pricer.CreditPricerParams pricerParams,
  359.         final org.drip.param.market.CurveSurfaceQuoteContainer csqs,
  360.         final org.drip.param.valuation.ValuationCustomizationParams vcp,
  361.         final org.drip.product.calib.ProductQuoteSet pqs)
  362.     {
  363.         return null;
  364.     }

  365.     @Override public double initialNotional()
  366.         throws java.lang.Exception
  367.     {
  368.         return 0;
  369.     }

  370.     @Override public double notional (
  371.         final int iDate)
  372.         throws java.lang.Exception
  373.     {
  374.         return 0;
  375.     }

  376.     @Override public double notional (
  377.         final int iDate1,
  378.         final int iDate2)
  379.         throws java.lang.Exception
  380.     {
  381.         return 0;
  382.     }

  383.     @Override public org.drip.analytics.output.CompositePeriodCouponMetrics couponMetrics (
  384.         final int iAccrualEndDate,
  385.         final org.drip.param.valuation.ValuationParams valParams,
  386.         final org.drip.param.market.CurveSurfaceQuoteContainer csqs)
  387.     {
  388.         return null;
  389.     }

  390.     @Override public int freq()
  391.     {
  392.         return 0;
  393.     }

  394.     @Override public org.drip.analytics.date.JulianDate effectiveDate()
  395.     {
  396.         return null;
  397.     }

  398.     @Override public org.drip.analytics.date.JulianDate maturityDate()
  399.     {
  400.         return null;
  401.     }

  402.     @Override public org.drip.analytics.date.JulianDate firstCouponDate()
  403.     {
  404.         return null;
  405.     }

  406.     @Override public java.util.List<org.drip.analytics.cashflow.CompositePeriod> couponPeriods()
  407.     {
  408.         java.util.List<org.drip.analytics.cashflow.CompositePeriod> lsCP = new
  409.             java.util.ArrayList<org.drip.analytics.cashflow.CompositePeriod>();

  410.         if (null != _aCompFixedStream && 0 != _aCompFixedStream.length) {
  411.             for (org.drip.product.rates.Stream fixedStream : _aCompFixedStream)
  412.                 lsCP.addAll (fixedStream.cashFlowPeriod());
  413.         }

  414.         if (null != _aCompFloatStream && 0 != _aCompFloatStream.length) {
  415.             for (org.drip.product.rates.Stream floatStream : _aCompFloatStream)
  416.                 lsCP.addAll (floatStream.cashFlowPeriod());
  417.         }

  418.         return lsCP;
  419.     }

  420.     @Override public org.drip.param.valuation.CashSettleParams cashSettleParams()
  421.     {
  422.         return null;
  423.     }

  424.     @Override public org.drip.analytics.support.CaseInsensitiveTreeMap<java.lang.Double> value (
  425.         final org.drip.param.valuation.ValuationParams valParams,
  426.         final org.drip.param.pricer.CreditPricerParams pricerParams,
  427.         final org.drip.param.market.CurveSurfaceQuoteContainer csqs,
  428.         final org.drip.param.valuation.ValuationCustomizationParams quotingParams)
  429.     {
  430.         long lStart = System.nanoTime();

  431.         org.drip.analytics.support.CaseInsensitiveTreeMap<java.lang.Double> mapResult = new
  432.             org.drip.analytics.support.CaseInsensitiveTreeMap<java.lang.Double>();

  433.         if (null != _aCompFixedStream && 0 != _aCompFixedStream.length) {
  434.             for (org.drip.product.rates.Stream fixedStream : _aCompFixedStream) {
  435.                 org.drip.analytics.support.CaseInsensitiveTreeMap<java.lang.Double>
  436.                     mapFixedStreamResult = fixedStream.value (valParams, pricerParams, csqs, quotingParams);

  437.                 if (!org.drip.analytics.support.Helper.AccumulateMeasures (mapResult,
  438.                     fixedStream.name(), mapFixedStreamResult))
  439.                     return null;
  440.             }
  441.         }

  442.         if (null != _aCompFloatStream && 0 != _aCompFloatStream.length) {
  443.             for (org.drip.product.rates.Stream floatStream : _aCompFloatStream) {
  444.                 org.drip.analytics.support.CaseInsensitiveTreeMap<java.lang.Double>
  445.                     mapFixedStreamResult = floatStream.value (valParams, pricerParams, csqs, quotingParams);

  446.                 if (!org.drip.analytics.support.Helper.AccumulateMeasures (mapResult,
  447.                     floatStream.name(), mapFixedStreamResult))
  448.                     return null;
  449.             }
  450.         }

  451.         mapResult.put ("CalcTime", (System.nanoTime() - lStart) * 1.e-09);

  452.         return mapResult;
  453.     }

  454.     @Override public java.util.Set<java.lang.String> measureNames()
  455.     {
  456.         return null;
  457.     }

  458.     @Override public double pv (
  459.         final org.drip.param.valuation.ValuationParams valParams,
  460.         final org.drip.param.pricer.CreditPricerParams pricerParams,
  461.         final org.drip.param.market.CurveSurfaceQuoteContainer csqc,
  462.         final org.drip.param.valuation.ValuationCustomizationParams vcp)
  463.         throws java.lang.Exception
  464.     {
  465.         double dblDirtyPV = 0.;

  466.         if (null != _aCompFixedStream && 0 != _aCompFixedStream.length) {
  467.             for (org.drip.product.rates.Stream fixedStream : _aCompFixedStream)
  468.                 dblDirtyPV += fixedStream.pv (valParams, pricerParams, csqc, vcp);
  469.         }

  470.         if (null != _aCompFloatStream && 0 != _aCompFloatStream.length) {
  471.             for (org.drip.product.rates.Stream floatStream : _aCompFloatStream)
  472.                 dblDirtyPV += floatStream.pv (valParams, pricerParams, csqc, vcp);
  473.         }

  474.         return dblDirtyPV;
  475.     }

  476.     @Override public org.drip.analytics.support.CaseInsensitiveTreeMap<java.lang.Double> calibMeasures (
  477.         final org.drip.param.valuation.ValuationParams valParams,
  478.         final org.drip.param.pricer.CreditPricerParams pricerParams,
  479.         final org.drip.param.market.CurveSurfaceQuoteContainer csqs,
  480.         final org.drip.param.valuation.ValuationCustomizationParams quotingParams)
  481.     {
  482.         return null;
  483.     }
  484. }