public class BondStream extends Stream
Constructor and Description |
---|
BondStream(java.util.List<CompositePeriod> lsCouponPeriod,
int iFinalMaturityDate,
java.lang.String strMaturityType)
Construct the BondStream instance from the list of coupon periods
|
Modifier and Type | Method and Description |
---|---|
static BondStream |
Create(int iMaturityDate,
int iEffectiveDate,
int iFinalMaturityDate,
int iFirstCouponDate,
int iInterestAccrualStartDate,
int iFreq,
double dblCoupon,
java.lang.String strCouponDC,
java.lang.String strAccrualDC,
DateAdjustParams dapPay,
DateAdjustParams dapReset,
DateAdjustParams dapMaturity,
DateAdjustParams dapEffective,
DateAdjustParams dapPeriodEnd,
DateAdjustParams dapAccrualEnd,
DateAdjustParams dapPeriodStart,
DateAdjustParams dapAccrualStart,
java.lang.String strMaturityType,
boolean bPeriodsFromForward,
java.lang.String strCalendar,
java.lang.String strCurrency,
ForwardLabel forwardLabel,
CreditLabel creditLabel)
Construct and Instance of PeriodSet from the specified Parameters
|
int |
finalMaturityDate()
Retrieve the Final Maturity Date
|
CompositePeriod |
firstPeriod()
Return the first Coupon period
|
CompositePeriod |
lastPeriod()
Returns the final Coupon period
|
java.lang.String |
maturityType()
Retrieve the Maturity Type
|
CompositePeriod |
period(int iIndex)
Retrieve the period corresponding to the given index
|
int |
periodIndex(int iDate)
Return the period index containing the specified date
|
accrualDC, accrualEOMAdjustment, availableMeasures, basis, calendar, calibQuoteSet, cashflowCurrencySet, cashFlowPeriod, containingPeriod, coupon, couponCurrency, couponDC, couponEOMAdjustment, creditLabel, effective, firstCouponDate, forwardLabel, forwardPRWC, freq, fundingForwardPRWC, fundingLabel, fundingPRWC, fxLabel, fxPRWC, govviePRWC, initialNotional, jackDDirtyPVDManifestMeasure, manifestMeasureDFMicroJack, maturity, name, notional, notional, payCurrency, periods, pv, value, volatilityPRWC
public BondStream(java.util.List<CompositePeriod> lsCouponPeriod, int iFinalMaturityDate, java.lang.String strMaturityType) throws java.lang.Exception
lsCouponPeriod
- List of Coupon PeriodiFinalMaturityDate
- Final Maturity DatestrMaturityType
- Maturity Typejava.lang.Exception
- Thrown if Inputs are invalidpublic static final BondStream Create(int iMaturityDate, int iEffectiveDate, int iFinalMaturityDate, int iFirstCouponDate, int iInterestAccrualStartDate, int iFreq, double dblCoupon, java.lang.String strCouponDC, java.lang.String strAccrualDC, DateAdjustParams dapPay, DateAdjustParams dapReset, DateAdjustParams dapMaturity, DateAdjustParams dapEffective, DateAdjustParams dapPeriodEnd, DateAdjustParams dapAccrualEnd, DateAdjustParams dapPeriodStart, DateAdjustParams dapAccrualStart, java.lang.String strMaturityType, boolean bPeriodsFromForward, java.lang.String strCalendar, java.lang.String strCurrency, ForwardLabel forwardLabel, CreditLabel creditLabel)
iMaturityDate
- Maturity DateiEffectiveDate
- Effective DateiFinalMaturityDate
- Final Maturity DateiFirstCouponDate
- First Coupon DateiInterestAccrualStartDate
- Interest Accrual Start DateiFreq
- Coupon FrequencydblCoupon
- Coupon RatestrCouponDC
- Coupon day count conventionstrAccrualDC
- Accrual day count conventiondapPay
- Pay Date Adjustment ParametersdapReset
- Reset Date Adjustment ParametersdapMaturity
- Maturity Date Adjustment ParametersdapEffective
- Effective Date Adjustment ParametersdapPeriodEnd
- Period End Date Adjustment ParametersdapAccrualEnd
- Accrual Date Adjustment ParametersdapPeriodStart
- Period Start Date Adjustment ParametersdapAccrualStart
- Accrual Start Date Adjustment ParametersstrMaturityType
- Maturity TypebPeriodsFromForward
- Generate Periods forward (True) or Backward (False)strCalendar
- Optional Holiday Calendar for accrual calculationsstrCurrency
- Coupon CurrencyforwardLabel
- The Forward LabelcreditLabel
- The Credit Labelpublic CompositePeriod firstPeriod()
public CompositePeriod lastPeriod()
public int periodIndex(int iDate) throws java.lang.Exception
iDate
- Date inputjava.lang.Exception
- Thrown if the input date not in the period set rangepublic CompositePeriod period(int iIndex)
iIndex
- Period indexpublic java.lang.String maturityType()
public int finalMaturityDate()