FloatFloatQuoteSet.java

  1. package org.drip.product.calib;

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

  79. /**
  80.  * <i>FloatFloatQuoteSet</i> extends the ProductQuoteSet by implementing the Calibration Parameters for the
  81.  * Float-Float Swap Component. Currently it exposes the PV, the Reference Basis, and the Derived Basis Quote
  82.  * Fields.
  83.  *
  84.  *  <br><br>
  85.  *  <ul>
  86.  *      <li><b>Module </b> = <a href = "https://github.com/lakshmiDRIP/DROP/tree/master/ProductCore.md">Product Core Module</a></li>
  87.  *      <li><b>Library</b> = <a href = "https://github.com/lakshmiDRIP/DROP/tree/master/FixedIncomeAnalyticsLibrary.md">Fixed Income Analytics</a></li>
  88.  *      <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>
  89.  *      <li><b>Package</b> = <a href = "https://github.com/lakshmiDRIP/DROP/tree/master/src/main/java/org/drip/product/calib/README.md">Curve/Surface Calibration Quote Sets</a></li>
  90.  *  </ul>
  91.  * <br><br>
  92.  *
  93.  * @author Lakshmi Krishnamurthy
  94.  */

  95. public class FloatFloatQuoteSet extends org.drip.product.calib.ProductQuoteSet {

  96.     /**
  97.      * FloatFloatQuoteSet Constructor
  98.      *
  99.      * @param aLSS Array of Latent State Specification
  100.      *
  101.      * @throws java.lang.Exception Thrown if Inputs are invalid
  102.      */

  103.     public FloatFloatQuoteSet (
  104.         final org.drip.state.representation.LatentStateSpecification[] aLSS)
  105.         throws java.lang.Exception
  106.     {
  107.         super (aLSS);
  108.     }

  109.     /**
  110.      * Set the PV
  111.      *
  112.      * @param dblPV The PV
  113.      *
  114.      * @return TRUE - PV successfully set
  115.      */

  116.     public boolean setPV (
  117.         final double dblPV)
  118.     {
  119.         return set ("PV", dblPV);
  120.     }

  121.     /**
  122.      * Indicate if the PV Field exists
  123.      *
  124.      * @return TRUE - PV Field Exists
  125.      */

  126.     public boolean containsPV()
  127.     {
  128.         return contains ("PV");
  129.     }

  130.     /**
  131.      * Retrieve the PV
  132.      *
  133.      * @return The PV
  134.      *
  135.      * @throws java.lang.Exception Thrown if the PV Field does not exist
  136.      */

  137.     public double pv()
  138.         throws java.lang.Exception
  139.     {
  140.         return get ("PV");
  141.     }

  142.     /**
  143.      * Set the Derived Par Basis Spread
  144.      *
  145.      * @param dblDerivedParBasisSpread The Derived Par Basis Spread
  146.      *
  147.      * @return TRUE - The Derived Par Basis Spread successfully set
  148.      */

  149.     public boolean setDerivedParBasisSpread (
  150.         final double dblDerivedParBasisSpread)
  151.     {
  152.         return set ("DerivedParBasisSpread", dblDerivedParBasisSpread);
  153.     }

  154.     /**
  155.      * Indicate if the Derived Par Basis Spread Field exists
  156.      *
  157.      * @return TRUE - The Derived Par Basis Spread Field Exists
  158.      */

  159.     public boolean containsDerivedParBasisSpread()
  160.     {
  161.         return contains ("DerivedParBasisSpread");
  162.     }

  163.     /**
  164.      * Retrieve the Derived Par Basis Spread
  165.      *
  166.      * @return The Derived Par Basis Spread
  167.      *
  168.      * @throws java.lang.Exception Thrown if the Derived Par Basis Spread Field does not exist
  169.      */

  170.     public double derivedParBasisSpread()
  171.         throws java.lang.Exception
  172.     {
  173.         return get ("DerivedParBasisSpread");
  174.     }

  175.     /**
  176.      * Set the Reference Par Basis Spread
  177.      *
  178.      * @param dblReferenceParBasisSpread The Reference Par Basis Spread
  179.      *
  180.      * @return TRUE - The Reference Par Basis Spread successfully set
  181.      */

  182.     public boolean setReferenceParBasisSpread (
  183.         final double dblReferenceParBasisSpread)
  184.     {
  185.         return set ("ReferenceParBasisSpread", dblReferenceParBasisSpread);
  186.     }

  187.     /**
  188.      * Indicate if the Reference Par Basis Spread Field exists
  189.      *
  190.      * @return TRUE - The Reference Par Basis Spread Field Exists
  191.      */

  192.     public boolean containsReferenceParBasisSpread()
  193.     {
  194.         return contains ("ReferenceParBasisSpread");
  195.     }

  196.     /**
  197.      * Retrieve the Reference Par Basis Spread
  198.      *
  199.      * @return The Reference Par Basis Spread
  200.      *
  201.      * @throws java.lang.Exception Thrown if the Reference Par Basis Spread Field does not exist
  202.      */

  203.     public double referenceParBasisSpread()
  204.         throws java.lang.Exception
  205.     {
  206.         return get ("ReferenceParBasisSpread");
  207.     }
  208. }