Package org.drip.product.creator
Class ConstantPaymentBondBuilder
java.lang.Object
org.drip.product.creator.ConstantPaymentBondBuilder
public class ConstantPaymentBondBuilder
extends java.lang.Object
ConstantPaymentBondBuilder contains the Suite of Helper Functions for creating Constant Payments
Based Bonds.
- Module = Product Core Module
- Library = Fixed Income Analytics
- Project = Product Components/Baskets for Credit, FRA, FX, Govvie, Rates, and Option AssetClasses
- Package = Streams and Products Construction Utilities
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description ConstantPaymentBondBuilder()
-
Method Summary
Modifier and Type Method Description static double
ConstantUniformPaymentAmount(double dblBondNotional, double dblCouponRate, int iTenorInYears)
Compute the Constant Uniform Payment Amount for the Parameters of the Specified Mortgage Bondstatic BondComponent
Prepay(java.lang.String strName, JulianDate dtEffective, java.lang.String strCurrency, int iNumPayment, java.lang.String strDayCount, int iPayFrequency, double dblCouponRate, double dblFeeRate, double dblCPR, double dblConstantAmount, double dblInitialNotional)
Construct an Instance of the Constant Payment Bond with a Deterministic Pre-payment Ratestatic BondComponent
Standard(java.lang.String strName, JulianDate dtEffective, java.lang.String strCurrency, int iNumPayment, java.lang.String strDayCount, int iPayFrequency, double dblCouponRate, double dblFeeRate, double dblConstantAmount, double dblInitialNotional)
Construct an Instance of the Constant Payment BondMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ConstantPaymentBondBuilder
public ConstantPaymentBondBuilder()
-
-
Method Details
-
Standard
public static final BondComponent Standard(java.lang.String strName, JulianDate dtEffective, java.lang.String strCurrency, int iNumPayment, java.lang.String strDayCount, int iPayFrequency, double dblCouponRate, double dblFeeRate, double dblConstantAmount, double dblInitialNotional)Construct an Instance of the Constant Payment Bond- Parameters:
strName
- Mortgage Bond Instance NamedtEffective
- Effective DatestrCurrency
- CurrencyiNumPayment
- The (Maximum) Number of PaymentsstrDayCount
- Coupon/Accrual Day CountiPayFrequency
- Pay FrequencydblCouponRate
- The Coupon RatedblFeeRate
- The Fee RatedblConstantAmount
- The Fixed Monthly AmountdblInitialNotional
- The Initial Bond Notional- Returns:
- Instance of the Fixed Mortgage Product
-
Prepay
public static final BondComponent Prepay(java.lang.String strName, JulianDate dtEffective, java.lang.String strCurrency, int iNumPayment, java.lang.String strDayCount, int iPayFrequency, double dblCouponRate, double dblFeeRate, double dblCPR, double dblConstantAmount, double dblInitialNotional)Construct an Instance of the Constant Payment Bond with a Deterministic Pre-payment Rate- Parameters:
strName
- Mortgage Bond Instance NamedtEffective
- Effective DatestrCurrency
- CurrencyiNumPayment
- The (Maximum) Number of PaymentsstrDayCount
- Coupon/Accrual Day CountiPayFrequency
- Pay FrequencydblCouponRate
- The Coupon RatedblFeeRate
- The Fee RatedblCPR
- the Constant Pre-payment RatedblConstantAmount
- The Fixed Monthly AmountdblInitialNotional
- The Initial Bond Notional- Returns:
- Instance of the Fixed Mortgage Product
-
ConstantUniformPaymentAmount
public static final double ConstantUniformPaymentAmount(double dblBondNotional, double dblCouponRate, int iTenorInYears) throws java.lang.ExceptionCompute the Constant Uniform Payment Amount for the Parameters of the Specified Mortgage Bond- Parameters:
dblBondNotional
- The Current NotionaldblCouponRate
- The Coupon RateiTenorInYears
- Tenor in Years- Returns:
- The Constant Uniform Payment Amount
- Throws:
java.lang.Exception
- Thrown if the Constant Uniform Payment Amount cannot be computed
-