public abstract class CompositePeriod
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
int |
accrualCompoundingRule()
Retrieve the Accrual Compounding Rule
|
double |
accrualDCF(int iValueDate)
Compute the Coupon Accrual DCF to the specified Accrual End Date
|
CompositePeriodAccrualMetrics |
accrualMetrics(int iValueDate,
CurveSurfaceQuoteContainer csqs)
Compute the Coupon Accrual Measures to the specified Accrual End Date
|
double |
baseNotional()
Get the Period Base Notional
|
double |
basis()
Period Basis
|
abstract double |
basisQuote(ProductQuoteSet pqs)
Retrieve the Period Calibration Basis Quote from the specified product quote set
|
CollateralLabel |
collateralLabel()
Return the Collateral Label
|
boolean |
contains(int iDate)
Check whether the supplied Date is inside the Period specified
|
java.lang.String |
couponCurrency()
Retrieve the Coupon Currency
|
double |
couponDCF()
Compute the Full Coupon DCF
|
double |
couponFactor(int iDate)
Period Coupon Schedule Factor Corresponding to the specified Date
|
double |
couponFactor(int iDate1,
int iDate2)
Period Coupon Schedule Factor Aggregated over the specified Dates
|
CompositePeriodCouponMetrics |
couponMetrics(int iValueDate,
CurveSurfaceQuoteContainer csqs)
Compute the Full Period Coupon Measures
|
Array2D |
couponSchedule()
Get the period Coupon Schedule
|
CreditLabel |
creditLabel()
Return the Credit Label
|
double |
df(CurveSurfaceQuoteContainer csqs)
Coupon Period Discount Factor
|
ComposableUnitPeriod |
enclosingCUP(int iDate)
Return the Unit Period to which the Date belongs
|
int |
endDate()
Period End Date
|
PredictorResponseWeightConstraint |
forwardFundingPRWC(int iValueDate,
CurveSurfaceQuoteContainer csqs,
ProductQuoteSet pqs)
Generate the Merged Forward/Funding Predictor/Response Constraint
|
ForwardLabel |
forwardLabel()
Return the Forward Label
|
PredictorResponseWeightConstraint |
forwardPRWC(int iValueDate,
CurveSurfaceQuoteContainer csqs,
ProductQuoteSet pqs)
Generate the Forward Predictor/Response Constraint
|
int |
freq()
Retrieve the Coupon Frequency
|
FundingLabel |
fundingLabel()
Return the Funding Label
|
PredictorResponseWeightConstraint |
fundingPRWC(int iValueDate,
CurveSurfaceQuoteContainer csqs,
ProductQuoteSet pqs)
Generate the Funding Predictor/Response Constraint
|
double |
fx(CurveSurfaceQuoteContainer csqs)
Coupon Period FX
|
int |
fxFixingDate()
Return the Period FX Fixing Date
|
FXLabel |
fxLabel()
Return the FX Label
|
PredictorResponseWeightConstraint |
fxPRWC(int iValueDate,
CurveSurfaceQuoteContainer csqs,
ProductQuoteSet pqs)
Generate the FX Predictor/Response Constraint
|
boolean |
isFXMTM()
Is this Cash Flow FX MTM'ed?
|
java.util.List<LossQuadratureMetrics> |
lossMetrics(CreditComponent comp,
ValuationParams valParams,
CreditPricerParams pricerParams,
int iWorkoutDate,
CurveSurfaceQuoteContainer csqs)
Create a set of loss period measures
|
double |
notional(int iDate)
Coupon Period Notional Corresponding to the specified Date
|
double |
notional(int iDate1,
int iDate2)
Coupon Period Notional Aggregated over the specified Dates
|
Array2D |
notionalSchedule()
Get the period Notional Schedule
|
java.lang.String |
payCurrency()
Retrieve the Pay Currency
|
int |
payDate()
Return the Period Pay Date
|
abstract CompositePeriodQuoteSet |
periodQuoteSet(ProductQuoteSet pqs,
CurveSurfaceQuoteContainer csqs)
Retrieve the Period Calibration Quotes from the specified product quote set
|
java.util.List<ComposableUnitPeriod> |
periods()
Retrieve the List of Composable Periods
|
java.util.List<ConvexityAdjustment> |
periodWiseConvexityAdjustment(int iValueDate,
CurveSurfaceQuoteContainer csqs)
Compute the Convexity Adjustment for the composable periods that use arithmetic compounding using the
specified value date using the market data provided
|
int |
startDate()
Period Start Date
|
double |
survival(CurveSurfaceQuoteContainer csqs)
Coupon Period Survival Probability
|
java.lang.String |
tenor()
Convert the Coupon Frequency into a Tenor
|
ConvexityAdjustment |
terminalConvexityAdjustment(int iValueDate,
CurveSurfaceQuoteContainer csqs)
Compute the Convexity Adjustment for the composable periods that use geometric compounding using the
specified value date using the market data provided
|
java.util.List<UnitPeriodConvexityMetrics> |
unitPeriodConvexityMetrics(int iValueDate,
CurveSurfaceQuoteContainer csqs)
Compute the Unit Period Convexity Measures
|
PredictorResponseWeightConstraint |
volatilityPRWC(int iValueDate,
CurveSurfaceQuoteContainer csqs,
ProductQuoteSet pqs)
Generate the Volatility Predictor/Response Constraint
|
public java.util.List<ComposableUnitPeriod> periods()
public int startDate()
public int endDate()
public boolean contains(int iDate)
iDate
- Datepublic ComposableUnitPeriod enclosingCUP(int iDate)
iDate
- Datepublic int accrualCompoundingRule()
public int payDate()
public int fxFixingDate() throws java.lang.Exception
java.lang.Exception
- Thrown if FX Fixing Date cannot be generatedpublic boolean isFXMTM()
public double fx(CurveSurfaceQuoteContainer csqs) throws java.lang.Exception
csqs
- Market Parametersjava.lang.Exception
- Thrown if the Inputs are Invalidpublic int freq()
public java.lang.String tenor()
public java.lang.String payCurrency()
public java.lang.String couponCurrency()
public double basis()
public double survival(CurveSurfaceQuoteContainer csqs) throws java.lang.Exception
csqs
- Market Parametersjava.lang.Exception
- Thrown if the Inputs are Invalidpublic double df(CurveSurfaceQuoteContainer csqs) throws java.lang.Exception
csqs
- Market Parametersjava.lang.Exception
- Thrown if the Inputs are Invalidpublic double baseNotional()
public Array2D notionalSchedule()
public double notional(int iDate) throws java.lang.Exception
iDate
- The Specified Datejava.lang.Exception
- Thrown if the Inputs are Invalidpublic double notional(int iDate1, int iDate2) throws java.lang.Exception
iDate1
- The Date #1iDate2
- The Date #2java.lang.Exception
- Thrown if the Inputs are Invalidpublic Array2D couponSchedule()
public double couponFactor(int iDate) throws java.lang.Exception
iDate
- The Specified Datejava.lang.Exception
- Thrown if the Inputs are Invalidpublic double couponFactor(int iDate1, int iDate2) throws java.lang.Exception
iDate1
- The Date #1iDate2
- The Date #2java.lang.Exception
- Thrown if the Inputs are Invalidpublic CollateralLabel collateralLabel()
public CreditLabel creditLabel()
public ForwardLabel forwardLabel()
public FundingLabel fundingLabel()
public FXLabel fxLabel()
public java.util.List<ConvexityAdjustment> periodWiseConvexityAdjustment(int iValueDate, CurveSurfaceQuoteContainer csqs)
iValueDate
- The Valuation Datecsqs
- The Market Curves/Surfacepublic ConvexityAdjustment terminalConvexityAdjustment(int iValueDate, CurveSurfaceQuoteContainer csqs)
iValueDate
- The Valuation Datecsqs
- The Market Curves/Surfacepublic java.util.List<UnitPeriodConvexityMetrics> unitPeriodConvexityMetrics(int iValueDate, CurveSurfaceQuoteContainer csqs)
iValueDate
- Valuation Datecsqs
- The Market Curve Surface/Quote Setpublic CompositePeriodCouponMetrics couponMetrics(int iValueDate, CurveSurfaceQuoteContainer csqs)
iValueDate
- Valuation Datecsqs
- The Market Curve Surface/Quote Setpublic double accrualDCF(int iValueDate) throws java.lang.Exception
iValueDate
- The Valuation Datejava.lang.Exception
- Thrown if the Accrual DCF cannot be calculatedpublic double couponDCF() throws java.lang.Exception
java.lang.Exception
- Thrown if the Full Coupon DCF cannot be calculatedpublic CompositePeriodAccrualMetrics accrualMetrics(int iValueDate, CurveSurfaceQuoteContainer csqs)
iValueDate
- The Valuation Datecsqs
- The Market Curve Surface/Quote Setpublic java.util.List<LossQuadratureMetrics> lossMetrics(CreditComponent comp, ValuationParams valParams, CreditPricerParams pricerParams, int iWorkoutDate, CurveSurfaceQuoteContainer csqs)
comp
- Component for which the measures are to be generatedvalParams
- ValuationParams from which the periods are generatedpricerParams
- PricerParams that control the generation characteristicsiWorkoutDate
- Double JulianDate representing the absolute end of all the generated periodscsqs
- Market Parameterspublic PredictorResponseWeightConstraint forwardPRWC(int iValueDate, CurveSurfaceQuoteContainer csqs, ProductQuoteSet pqs)
iValueDate
- The Valuation Datecsqs
- The Market Curve Surface/Quote Setpqs
- Product Quote Setpublic PredictorResponseWeightConstraint fundingPRWC(int iValueDate, CurveSurfaceQuoteContainer csqs, ProductQuoteSet pqs)
iValueDate
- The Valuation Datecsqs
- The Market Curve Surface/Quote Setpqs
- Product Quote Setpublic PredictorResponseWeightConstraint forwardFundingPRWC(int iValueDate, CurveSurfaceQuoteContainer csqs, ProductQuoteSet pqs)
iValueDate
- The Valuation Datecsqs
- The Market Curve Surface/Quote Setpqs
- Product Quote Setpublic PredictorResponseWeightConstraint fxPRWC(int iValueDate, CurveSurfaceQuoteContainer csqs, ProductQuoteSet pqs)
iValueDate
- The Valuation Datecsqs
- The Market Curve Surface/Quote Setpqs
- Product Quote Setpublic PredictorResponseWeightConstraint volatilityPRWC(int iValueDate, CurveSurfaceQuoteContainer csqs, ProductQuoteSet pqs)
iValueDate
- The Valuation Datecsqs
- The Market Curve Surface/Quote Setpqs
- Product Quote Setpublic abstract CompositePeriodQuoteSet periodQuoteSet(ProductQuoteSet pqs, CurveSurfaceQuoteContainer csqs)
pqs
- The Product Quote Setcsqs
- The Market Curve Surface/Quote Setpublic abstract double basisQuote(ProductQuoteSet pqs)
pqs
- The Product Quote Set