Class BondBasket

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

public class BondBasket
extends BasketProduct
BondBasket implements the bond basket product contract details. Contains the basket name, basket notional, component bonds, and their weights.



Author:
Lakshmi Krishnamurthy
  • Constructor Details

    • BondBasket

      public BondBasket​(java.lang.String strName, Bond[] aBond, double[] adblWeights) throws java.lang.Exception
      BondBasket constructor
      Parameters:
      strName - BondBasket Name
      aBond - Component bonds
      adblWeights - Component Bond weights
      Throws:
      java.lang.Exception - Thrown if 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