public class CDSComponent extends CreditDefaultSwap
Modifier and Type | Class and Description |
---|---|
class |
CDSComponent.SpreadCalibOP
CDS spread calibration output
|
class |
CDSComponent.SpreadCalibrator
Implementation of the CDS spread calibrator
|
Constructor and Description |
---|
CDSComponent(int iEffectiveDate,
int iMaturityDate,
double dblCoupon,
int iFreq,
java.lang.String strCouponDC,
java.lang.String strAccrualDC,
java.lang.String strFloatingRateIndex,
boolean bConvCDS,
DateAdjustParams dapEffective,
DateAdjustParams dapMaturity,
DateAdjustParams dapPeriodStart,
DateAdjustParams dapPeriodEnd,
DateAdjustParams dapAccrualStart,
DateAdjustParams dapAccrualEnd,
DateAdjustParams dapPay,
DateAdjustParams dapReset,
Array2D notlSchedule,
double dblNotional,
java.lang.String strCouponCurrency,
CreditSetting crValParams,
java.lang.String strCalendar)
CDSComponent constructor: Most generic CDS creation functionality
|
Modifier and Type | Method and Description |
---|---|
double |
calibFlatSpread(ValuationParams valParams,
CreditPricerParams pricerParams,
CurveSurfaceQuoteContainer csqs,
ValuationCustomizationParams vcp)
Calibrate the CDS's flat spread from the calculated up-front points
|
CaseInsensitiveTreeMap<java.lang.Double> |
calibMeasures(ValuationParams valParams,
CreditPricerParams pricerParams,
CurveSurfaceQuoteContainer csqs,
ValuationCustomizationParams vcp)
Generate a Map of the Calibration Measures
|
ProductQuoteSet |
calibQuoteSet(LatentStateSpecification[] aLSS)
Generate the Product Specific Calibration Quote Set
|
CashSettleParams |
cashSettleParams()
Get the Product's cash settlement parameters
|
CaseInsensitiveTreeMap<java.lang.String> |
couponCurrency()
Get the Map of Coupon Currencies
|
CompositePeriodCouponMetrics |
couponMetrics(int iAccrualEndDate,
ValuationParams valParams,
CurveSurfaceQuoteContainer csqs)
Get the Product's coupon Metrics at the specified accrual date
|
java.util.List<CompositePeriod> |
couponPeriods()
Get the Product's Cash Flow Periods
|
CreditLabel |
creditLabel()
Get the Credit Curve Latent State Identifier Label
|
CreditSetting |
creditValuationParams()
Get the credit component's Credit Valuation Parameters
|
JulianDate |
effectiveDate()
Get the Effective Date
|
JulianDate |
firstCouponDate()
Get the First Coupon Date
|
CaseInsensitiveTreeMap<ForwardLabel> |
forwardLabel()
Get the Map of Forward Curve Latent State Labels
|
PredictorResponseWeightConstraint |
forwardPRWC(ValuationParams valParams,
CreditPricerParams pricerParams,
CurveSurfaceQuoteContainer csqs,
ValuationCustomizationParams vcp,
ProductQuoteSet pqs)
Generate the Calibratable Linearized Predictor/Response Constraint Weights for the Non-merged Forward
Factor Latent State from the Component's Cash Flows.
|
int |
freq()
Retrieve the Coupon Frequency
|
PredictorResponseWeightConstraint |
fundingForwardPRWC(ValuationParams valParams,
CreditPricerParams pricerParams,
CurveSurfaceQuoteContainer csqs,
ValuationCustomizationParams vcp,
ProductQuoteSet pqs)
Generate the Calibratable Linearized Predictor/Response Constraint Weights for the merged Funding and
Forward Latent States from the Component's Cash Flows.
|
FundingLabel |
fundingLabel()
Get the Funding Curve Latent State Label
|
PredictorResponseWeightConstraint |
fundingPRWC(ValuationParams valParams,
CreditPricerParams pricerParams,
CurveSurfaceQuoteContainer csqs,
ValuationCustomizationParams vcp,
ProductQuoteSet pqs)
Generate the Calibratable Linearized Predictor/Response Constraint Weights for the Non-merged Funding
Curve Discount Factor Latent State from the Component's Cash Flows.
|
CaseInsensitiveTreeMap<FXLabel> |
fxLabel()
Get the Map of FX Latent State Identifier Labels
|
PredictorResponseWeightConstraint |
fxPRWC(ValuationParams valParams,
CreditPricerParams pricerParams,
CurveSurfaceQuoteContainer csqs,
ValuationCustomizationParams vcp,
ProductQuoteSet pqs)
Generate the Calibratable Linearized Predictor/Response Constraint Weights for the Non-merged FX Curve
FX Forward Latent State from the Component's Cash Flows.
|
GovvieLabel |
govvieLabel()
Get the Govvie Curve Latent State Label
|
PredictorResponseWeightConstraint |
govviePRWC(ValuationParams valParams,
CreditPricerParams pricerParams,
CurveSurfaceQuoteContainer csqs,
ValuationCustomizationParams vcp,
ProductQuoteSet pqs)
Generate the Calibratable Linearized Predictor/Response Constraint Weights for the Non-merged Govvie
Curve FX Forward Latent State from the Component's Cash Flows.
|
double |
initialNotional()
Get the Initial Notional for the Product
|
WengertJacobian |
jackDDirtyPVDManifestMeasure(ValuationParams valParams,
CreditPricerParams pricerParams,
CurveSurfaceQuoteContainer csqs,
ValuationCustomizationParams vcp)
Compute the Jacobian of the Dirty PV to the Calibrated Input Manifest Measures
|
java.util.List<LossQuadratureMetrics> |
lossFlow(ValuationParams valParams,
CreditPricerParams pricerParams,
CurveSurfaceQuoteContainer csqs)
Generate the loss flow for the credit component based on the pricer parameters
|
WengertJacobian |
manifestMeasureDFMicroJack(java.lang.String strManifestMeasure,
ValuationParams valParams,
CreditPricerParams pricerParams,
CurveSurfaceQuoteContainer csqs,
ValuationCustomizationParams vcp)
Compute the micro-Jacobian of the given measure to the DF
|
JulianDate |
maturityDate()
Get the Maturity Date
|
java.util.Set<java.lang.String> |
measureNames()
Retrieve the ordered set of the measure names whose values will be calculated
|
java.lang.String |
name()
Get the component name
|
double |
notional(int iDate)
Get the Notional for the Product at the given date
|
double |
notional(int iDate1,
int iDate2)
Get the time-weighted Notional for the Product between 2 dates
|
java.lang.String |
payCurrency()
Get the Pay Currency
|
java.lang.String |
primaryCode()
Return the primary code
|
java.lang.String |
principalCurrency()
Get the Principal Currency
|
double |
pv(ValuationParams valParams,
CreditPricerParams pricerParamsIn,
CurveSurfaceQuoteContainer csqc,
ValuationCustomizationParams vcp)
Compute the PV for the specified Market Parameters
|
double |
recovery(int iDate,
CreditCurve cc)
Get the recovery of the credit component for the given date
|
double |
recovery(int iDateStart,
int iDateEnd,
CreditCurve cc)
Get the time-weighted recovery of the credit component between the given dates
|
double |
resetCoupon(double dblCoupon)
Reset the CDS's coupon
|
boolean |
setName(java.lang.String strName) |
void |
setPrimaryCode(java.lang.String strCode)
Set the component's primary code
|
CaseInsensitiveTreeMap<java.lang.Double> |
value(ValuationParams valParams,
CreditPricerParams pricerParams,
CurveSurfaceQuoteContainer csqs,
ValuationCustomizationParams vcp)
Generate a full list of the Product measures for the full input set of market parameters
|
CaseInsensitiveTreeMap<java.lang.Double> |
valueFromQuotedSpread(ValuationParams valParams,
CreditPricerParams pricerParams,
CurveSurfaceQuoteContainer csqs,
ValuationCustomizationParams vcp,
double dblFixCoupon,
double dblQuotedSpread)
Value the CDS from the Quoted Spread
|
CaseInsensitiveTreeMap<VolatilityLabel> |
volatilityLabel()
Get the Map of Volatility Latent State Identifier Labels
|
PredictorResponseWeightConstraint |
volatilityPRWC(ValuationParams valParams,
CreditPricerParams pricerParams,
CurveSurfaceQuoteContainer csqs,
ValuationCustomizationParams vcp,
ProductQuoteSet pqs)
Generate the Calibratable Linearized Predictor/Response Constraint Weights for the Non-merged
Volatility Latent State from the Component's Cash Flows.
|
lossFlow
calibPRWC, secondaryCode
customScenarioMeasures, measures, measureValue, tenor
public CDSComponent(int iEffectiveDate, int iMaturityDate, double dblCoupon, int iFreq, java.lang.String strCouponDC, java.lang.String strAccrualDC, java.lang.String strFloatingRateIndex, boolean bConvCDS, DateAdjustParams dapEffective, DateAdjustParams dapMaturity, DateAdjustParams dapPeriodStart, DateAdjustParams dapPeriodEnd, DateAdjustParams dapAccrualStart, DateAdjustParams dapAccrualEnd, DateAdjustParams dapPay, DateAdjustParams dapReset, Array2D notlSchedule, double dblNotional, java.lang.String strCouponCurrency, CreditSetting crValParams, java.lang.String strCalendar) throws java.lang.Exception
iEffectiveDate
- Effective DateiMaturityDate
- Maturity DatedblCoupon
- CouponiFreq
- FrequencystrCouponDC
- Coupon DCstrAccrualDC
- Accrual DCstrFloatingRateIndex
- Floating Rate IndexbConvCDS
- Is CDS ConventionaldapEffective
- Effective DAPdapMaturity
- Maturity DAPdapPeriodStart
- Period Start DAPdapPeriodEnd
- Period End DAPdapAccrualStart
- Accrual Start DAPdapAccrualEnd
- Accrual End DAPdapPay
- Pay DAPdapReset
- Reset DAPnotlSchedule
- Notional ScheduledblNotional
- Notional AmountstrCouponCurrency
- Coupon CurrencycrValParams
- Credit Valuation ParametersstrCalendar
- Calendarjava.lang.Exception
- Thrown if Inputs are Invalidpublic java.lang.String primaryCode()
CalibratableComponent
primaryCode
in class CalibratableComponent
public void setPrimaryCode(java.lang.String strCode)
CalibratableComponent
setPrimaryCode
in class CalibratableComponent
strCode
- Primary Codepublic boolean setName(java.lang.String strName)
public java.lang.String name()
ComponentMarketParamRef
public CaseInsensitiveTreeMap<java.lang.String> couponCurrency()
ComponentMarketParamRef
public java.lang.String payCurrency()
ComponentMarketParamRef
public java.lang.String principalCurrency()
ComponentMarketParamRef
public double initialNotional()
Component
initialNotional
in class Component
public double notional(int iDate) throws java.lang.Exception
Component
public double notional(int iDate1, int iDate2) throws java.lang.Exception
Component
public double recovery(int iDate, CreditCurve cc) throws java.lang.Exception
CreditComponent
recovery
in class CreditComponent
iDate
- JulianDatecc
- Credit Curvejava.lang.Exception
- Thrown if recovery cannot be calculatedpublic double recovery(int iDateStart, int iDateEnd, CreditCurve cc) throws java.lang.Exception
CreditComponent
recovery
in class CreditComponent
iDateStart
- JulianDate #1iDateEnd
- JulianDate #2cc
- Credit Curvejava.lang.Exception
- Thrown if recovery cannot be calculatedpublic CreditSetting creditValuationParams()
CreditComponent
creditValuationParams
in class CreditComponent
public CompositePeriodCouponMetrics couponMetrics(int iAccrualEndDate, ValuationParams valParams, CurveSurfaceQuoteContainer csqs)
Component
couponMetrics
in class Component
iAccrualEndDate
- Accrual End DatevalParams
- The Valuation Parameterscsqs
- Component Market Parameterspublic int freq()
Component
public CaseInsensitiveTreeMap<java.lang.Double> calibMeasures(ValuationParams valParams, CreditPricerParams pricerParams, CurveSurfaceQuoteContainer csqs, ValuationCustomizationParams vcp)
CalibratableComponent
calibMeasures
in class CalibratableComponent
valParams
- Valuation ParameterspricerParams
- Pricer Parameterscsqs
- Market Parametersvcp
- Valuation Customization Parameterspublic CreditLabel creditLabel()
ComponentMarketParamRef
public CaseInsensitiveTreeMap<ForwardLabel> forwardLabel()
ComponentMarketParamRef
public FundingLabel fundingLabel()
ComponentMarketParamRef
public GovvieLabel govvieLabel()
ComponentMarketParamRef
public CaseInsensitiveTreeMap<FXLabel> fxLabel()
ComponentMarketParamRef
public CaseInsensitiveTreeMap<VolatilityLabel> volatilityLabel()
ComponentMarketParamRef
public JulianDate effectiveDate()
Component
effectiveDate
in class Component
public JulianDate maturityDate()
Component
maturityDate
in class Component
public JulianDate firstCouponDate()
Component
firstCouponDate
in class Component
public java.util.List<CompositePeriod> couponPeriods()
Component
couponPeriods
in class Component
public CashSettleParams cashSettleParams()
Component
cashSettleParams
in class Component
public java.util.List<LossQuadratureMetrics> lossFlow(ValuationParams valParams, CreditPricerParams pricerParams, CurveSurfaceQuoteContainer csqs)
CreditComponent
lossFlow
in class CreditComponent
valParams
- ValuationParamspricerParams
- PricerParamscsqs
- ComponentMarketParamspublic CaseInsensitiveTreeMap<java.lang.Double> value(ValuationParams valParams, CreditPricerParams pricerParams, CurveSurfaceQuoteContainer csqs, ValuationCustomizationParams vcp)
Component
public java.util.Set<java.lang.String> measureNames()
Component
measureNames
in class Component
public double pv(ValuationParams valParams, CreditPricerParams pricerParamsIn, CurveSurfaceQuoteContainer csqc, ValuationCustomizationParams vcp) throws java.lang.Exception
Component
public CaseInsensitiveTreeMap<java.lang.Double> valueFromQuotedSpread(ValuationParams valParams, CreditPricerParams pricerParams, CurveSurfaceQuoteContainer csqs, ValuationCustomizationParams vcp, double dblFixCoupon, double dblQuotedSpread)
CreditDefaultSwap
valueFromQuotedSpread
in class CreditDefaultSwap
valParams
- ValuationParamspricerParams
- PricerParamscsqs
- ComponentMarketParamsvcp
- Valuation Customization ParametersdblFixCoupon
- Fix CoupondblQuotedSpread
- Quoted Spreadpublic WengertJacobian jackDDirtyPVDManifestMeasure(ValuationParams valParams, CreditPricerParams pricerParams, CurveSurfaceQuoteContainer csqs, ValuationCustomizationParams vcp)
CalibratableComponent
jackDDirtyPVDManifestMeasure
in class CalibratableComponent
valParams
- Valuation ParameterspricerParams
- Pricer Parameterscsqs
- Component Market Parametersvcp
- Valuation Customization Parameterspublic WengertJacobian manifestMeasureDFMicroJack(java.lang.String strManifestMeasure, ValuationParams valParams, CreditPricerParams pricerParams, CurveSurfaceQuoteContainer csqs, ValuationCustomizationParams vcp)
CalibratableComponent
manifestMeasureDFMicroJack
in class CalibratableComponent
strManifestMeasure
- Manifest Measure NamevalParams
- Valuation ParameterspricerParams
- Pricer Parameterscsqs
- Component Market Parametersvcp
- Valuation Customization Parameterspublic ProductQuoteSet calibQuoteSet(LatentStateSpecification[] aLSS)
CalibratableComponent
calibQuoteSet
in class CalibratableComponent
aLSS
- Array of Latent State Specificationpublic PredictorResponseWeightConstraint fundingPRWC(ValuationParams valParams, CreditPricerParams pricerParams, CurveSurfaceQuoteContainer csqs, ValuationCustomizationParams vcp, ProductQuoteSet pqs)
CalibratableComponent
fundingPRWC
in class CalibratableComponent
valParams
- Valuation ParameterspricerParams
- Pricer Parameterscsqs
- Component Market Parametersvcp
- Valuation Customization Parameterspqs
- Product Quote Setpublic PredictorResponseWeightConstraint forwardPRWC(ValuationParams valParams, CreditPricerParams pricerParams, CurveSurfaceQuoteContainer csqs, ValuationCustomizationParams vcp, ProductQuoteSet pqs)
CalibratableComponent
forwardPRWC
in class CalibratableComponent
valParams
- Valuation ParameterspricerParams
- Pricer Parameterscsqs
- Component Market Parametersvcp
- Valuation Customization Parameterspqs
- Product Quote Setpublic PredictorResponseWeightConstraint fundingForwardPRWC(ValuationParams valParams, CreditPricerParams pricerParams, CurveSurfaceQuoteContainer csqs, ValuationCustomizationParams vcp, ProductQuoteSet pqs)
CalibratableComponent
fundingForwardPRWC
in class CalibratableComponent
valParams
- Valuation ParameterspricerParams
- Pricer Parameterscsqs
- Component Market Parametersvcp
- Valuation Customization Parameterspqs
- Product Quote Setpublic PredictorResponseWeightConstraint fxPRWC(ValuationParams valParams, CreditPricerParams pricerParams, CurveSurfaceQuoteContainer csqs, ValuationCustomizationParams vcp, ProductQuoteSet pqs)
CalibratableComponent
fxPRWC
in class CalibratableComponent
valParams
- Valuation ParameterspricerParams
- Pricer Parameterscsqs
- Component Market Parametersvcp
- Valuation Customization Parameterspqs
- Product Quote Setpublic PredictorResponseWeightConstraint govviePRWC(ValuationParams valParams, CreditPricerParams pricerParams, CurveSurfaceQuoteContainer csqs, ValuationCustomizationParams vcp, ProductQuoteSet pqs)
CalibratableComponent
govviePRWC
in class CalibratableComponent
valParams
- Valuation ParameterspricerParams
- Pricer Parameterscsqs
- Component Market Parametersvcp
- Valuation Customization Parameterspqs
- Product Quote Setpublic PredictorResponseWeightConstraint volatilityPRWC(ValuationParams valParams, CreditPricerParams pricerParams, CurveSurfaceQuoteContainer csqs, ValuationCustomizationParams vcp, ProductQuoteSet pqs)
CalibratableComponent
volatilityPRWC
in class CalibratableComponent
valParams
- Valuation ParameterspricerParams
- Pricer Parameterscsqs
- Component Market Parametersvcp
- Valuation Customization Parameterspqs
- Product Quote Setpublic double resetCoupon(double dblCoupon) throws java.lang.Exception
resetCoupon
in class CreditDefaultSwap
dblCoupon
- The new Couponjava.lang.Exception
- Thrown if the coupon cannot be resetpublic double calibFlatSpread(ValuationParams valParams, CreditPricerParams pricerParams, CurveSurfaceQuoteContainer csqs, ValuationCustomizationParams vcp) throws java.lang.Exception
calibFlatSpread
in class CreditDefaultSwap
valParams
- ValuationParamspricerParams
- PricerParamscsqs
- ComponentMarketParamsvcp
- Valuation Customization Parametersjava.lang.Exception
- Thrown if cannot calibrate