Class CDSBasket

java.lang.Object
org.drip.product.definition.BasketProduct
org.drip.product.credit.CDSBasket
All Implemented Interfaces:
BasketMarketParamRef

public class CDSBasket
extends BasketProduct
CDSBasket implements the basket default swap product contract details. It contains effective date, maturity date, coupon, coupon day count, coupon frequency, basket components, basket notional, loss pay lag, and optionally the outstanding notional schedule and the flat basket recovery. It also contains methods to serialize out of and de-serialize into byte arrays.



Author:
Lakshmi Krishnamurthy
  • Constructor Details

    • CDSBasket

      public CDSBasket​(Component[] aComp, double[] adblWeight, java.lang.String strName) throws java.lang.Exception
      Construct a CDS Basket from the components and their weights
      Parameters:
      aComp - Array of components
      adblWeight - Weights of the components
      strName - Name of the basket
      Throws:
      java.lang.Exception - Thrown if the inputs are invalid
  • Method Details

    • name

      public java.lang.String name()
      Description copied from class: BasketProduct
      Return the basket name
      Specified by:
      name in interface BasketMarketParamRef
      Specified by:
      name in class BasketProduct
      Returns:
      Name of the basket product
    • components

      public Component[] components()
      Description copied from class: BasketProduct
      Return the Components in the Basket
      Specified by:
      components in class BasketProduct
      Returns:
      Components in the Basket
    • measureAggregationType

      public int measureAggregationType​(java.lang.String strMeasureName)
      Description copied from class: BasketProduct
      Retrieve the Aggregation Type for the specified Measure
      Specified by:
      measureAggregationType in class BasketProduct
      Parameters:
      strMeasureName - The Specified Measure Name
      Returns:
      The Aggregation Type