Package org.drip.product.creator
Class StreamBuilder
java.lang.Object
org.drip.product.creator.StreamBuilder
public class StreamBuilder
extends java.lang.Object
StreamBuilder contains Utility Functions to construct Fixed, Floating, and Mixed Streams.
- 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 StreamBuilder()
-
Method Summary
Modifier and Type Method Description static java.util.List<CompositePeriod>
FirstPenultimateDateFixedFloat(int iStreamStartDate, int iFixedStreamEndDate, int iFixedFirstCouponDate, int iFixedPenultimateCouponDate, int iFixedFreq, double dblFixedCoupon, java.lang.String strFixedCouponDC, java.lang.String strFixedAccrualDC, int iFloatStreamEndDate, int iFloatFirstCouponDate, int iFloatPenultimateCouponDate, int iFloatFreq, double dblFloatSpread, DateAdjustParams dapPay, DateAdjustParams dapStreamEnd, DateAdjustParams dapAccrualEnd, ForwardLabel forwardLabel, EntityCDSLabel creditLabel)
Generate Mixed Fixed-Float Stream off of the specified Parametersstatic java.util.List<CompositePeriod>
FirstPenultimateDateFixedStream(int iStreamStartDate, int iStreamEndDate, int iFirstCouponDate, int iPenultimateCouponDate, int iFreq, double dblCoupon, java.lang.String strCouponDC, java.lang.String strAccrualDC, DateAdjustParams dapPay, DateAdjustParams dapStreamEnd, DateAdjustParams dapAccrualEnd, java.lang.String strCurrency, EntityCDSLabel creditLabel)
Generate the Fixed Stream Off of the specified Parametersstatic java.util.List<CompositePeriod>
FirstPenultimateDateFloatStream(int iStreamStartDate, int iStreamEndDate, int iFirstCouponDate, int iPenultimateCouponDate, int iFreq, double dblSpread, DateAdjustParams dapPay, DateAdjustParams dapStreamEnd, DateAdjustParams dapAccrualEnd, FloaterLabel floaterLabel, EntityCDSLabel creditLabel)
Generate the Float Stream off of the specified ParametersMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
StreamBuilder
public StreamBuilder()
-
-
Method Details
-
FirstPenultimateDateFixedStream
public static final java.util.List<CompositePeriod> FirstPenultimateDateFixedStream(int iStreamStartDate, int iStreamEndDate, int iFirstCouponDate, int iPenultimateCouponDate, int iFreq, double dblCoupon, java.lang.String strCouponDC, java.lang.String strAccrualDC, DateAdjustParams dapPay, DateAdjustParams dapStreamEnd, DateAdjustParams dapAccrualEnd, java.lang.String strCurrency, EntityCDSLabel creditLabel)Generate the Fixed Stream Off of the specified Parameters- Parameters:
iStreamStartDate
- The Stream Start DateiStreamEndDate
- The Stream End DateiFirstCouponDate
- The First Coupon DateiPenultimateCouponDate
- The Penultimate Coupon DateiFreq
- Coupon FrequencydblCoupon
- Coupon RatestrCouponDC
- Coupon Day CountstrAccrualDC
- Accrual Day CountdapPay
- Pay Date Adjustment ParametersdapStreamEnd
- Stream End Date Adjustment ParametersdapAccrualEnd
- Accrual End Date Adjustment ParametersstrCurrency
- Coupon/Pay CurrencycreditLabel
- The Stream Credit Label- Returns:
- The Fixed Stream
-
FirstPenultimateDateFloatStream
public static final java.util.List<CompositePeriod> FirstPenultimateDateFloatStream(int iStreamStartDate, int iStreamEndDate, int iFirstCouponDate, int iPenultimateCouponDate, int iFreq, double dblSpread, DateAdjustParams dapPay, DateAdjustParams dapStreamEnd, DateAdjustParams dapAccrualEnd, FloaterLabel floaterLabel, EntityCDSLabel creditLabel)Generate the Float Stream off of the specified Parameters- Parameters:
iStreamStartDate
- The Stream Start DateiStreamEndDate
- The Stream End DateiFirstCouponDate
- The First Coupon DateiPenultimateCouponDate
- The Penultimate Coupon DateiFreq
- Coupon FrequencydblSpread
- The SpreaddapPay
- Pay Date Adjustment ParameterdapStreamEnd
- Stream End Date Adjustment ParameterdapAccrualEnd
- Accrual End Date Adjustment ParameterfloaterLabel
- Floater LabelcreditLabel
- Credit Label- Returns:
- The Float Stream
-
FirstPenultimateDateFixedFloat
public static final java.util.List<CompositePeriod> FirstPenultimateDateFixedFloat(int iStreamStartDate, int iFixedStreamEndDate, int iFixedFirstCouponDate, int iFixedPenultimateCouponDate, int iFixedFreq, double dblFixedCoupon, java.lang.String strFixedCouponDC, java.lang.String strFixedAccrualDC, int iFloatStreamEndDate, int iFloatFirstCouponDate, int iFloatPenultimateCouponDate, int iFloatFreq, double dblFloatSpread, DateAdjustParams dapPay, DateAdjustParams dapStreamEnd, DateAdjustParams dapAccrualEnd, ForwardLabel forwardLabel, EntityCDSLabel creditLabel)Generate Mixed Fixed-Float Stream off of the specified Parameters- Parameters:
iStreamStartDate
- The Stream Start DateiFixedStreamEndDate
- The Fixed Stream End DateiFixedFirstCouponDate
- The Fixed Stream First Coupon DateiFixedPenultimateCouponDate
- The Fixed Penultimate Coupon DateiFixedFreq
- Fixed Coupon FrequencydblFixedCoupon
- Fixed Coupon RatestrFixedCouponDC
- Fixed Coupon Day CountstrFixedAccrualDC
- Fixed Accrual Day CountiFloatStreamEndDate
- The Float Stream End DateiFloatFirstCouponDate
- The Float First Coupon DateiFloatPenultimateCouponDate
- The Float Penultimate Coupon DateiFloatFreq
- Float Coupon FrequencydblFloatSpread
- The Float SpreaddapPay
- Pay Date Adjustment ParameterdapStreamEnd
- Stream End Date Adjustment ParameterdapAccrualEnd
- Accrual End Date Adjustment ParameterforwardLabel
- Forward LabelcreditLabel
- Credit Label- Returns:
- The Mixed Stream
-