Package org.drip.product.credit
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.
- Module = Product Core Module
- Library = Fixed Income Analytics
- Project = Product Components/Baskets for Credit, FRA, FX, Govvie, Rates, and Option AssetClasses
- Package = Credit Products - Components and Baskets
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description BondBasket(java.lang.String strName, Bond[] aBond, double[] adblWeights)BondBasket constructor -
Method Summary
Modifier and Type Method Description Component[]components()Return the Components in the BasketintmeasureAggregationType(java.lang.String strMeasureName)Retrieve the Aggregation Type for the specified Measurejava.lang.Stringname()Return the basket nameMethods inherited from class org.drip.product.definition.BasketProduct
coupon, couponCurrency, couponPeriod, creditLabel, customScenarioMeasures, effective, firstCouponDate, forwardLabel, fundingLabel, fxLabel, initialNotional, maturity, measures, measureValue, notional, notional, payCurrency, principalCurrency, value, weightsMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
BondBasket
public BondBasket(java.lang.String strName, Bond[] aBond, double[] adblWeights) throws java.lang.ExceptionBondBasket constructor- Parameters:
strName- BondBasket NameaBond- Component bondsadblWeights- Component Bond weights- Throws:
java.lang.Exception- Thrown if inputs are invalid
-
-
Method Details
-
name
public java.lang.String name()Description copied from class:BasketProductReturn the basket name- Specified by:
namein interfaceBasketMarketParamRef- Specified by:
namein classBasketProduct- Returns:
- Name of the basket product
-
components
Description copied from class:BasketProductReturn the Components in the Basket- Specified by:
componentsin classBasketProduct- Returns:
- Components in the Basket
-
measureAggregationType
public int measureAggregationType(java.lang.String strMeasureName)Description copied from class:BasketProductRetrieve the Aggregation Type for the specified Measure- Specified by:
measureAggregationTypein classBasketProduct- Parameters:
strMeasureName- The Specified Measure Name- Returns:
- The Aggregation Type
-