public abstract class CreditDefaultSwap extends CreditComponent
NULL_SER_STRING, VERSION
Constructor and Description |
---|
CreditDefaultSwap() |
Modifier and Type | Method and Description |
---|---|
abstract double |
calibFlatSpread(ValuationParams valParams,
PricerParams pricerParams,
ComponentMarketParams mktParams,
QuotingParams quotingParams)
Calibrates the CDS's flat spread from the calculated up-front points
|
abstract double |
resetCoupon(double dblCoupon)
Resets the CDS's coupon
|
getCouponFlow, getCRValParams, getLossFlow, getRecovery, getRecovery
getPrimaryCode, getSecondaryCode, setPrimaryCode
calcCustomScenarioMeasures, calcMeasures, calcMeasureValue, getCashSettleParams, getCoupon, getCouponPeriod, getEffectiveDate, getFirstCouponDate, getInitialNotional, getMaturityDate, getNotional, getNotional, setCurves, value
deserialize, getCollectionKeyValueDelimiter, getCollectionMultiLevelKeyDelimiter, getCollectionRecordDelimiter, getFieldDelimiter, getObjectTrailer, serialize
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getComponentName, getCreditCurveName, getEDSFCurveName, getIRCurveName, getTreasuryCurveName
public abstract double resetCoupon(double dblCoupon) throws java.lang.Exception
dblCoupon
- The new Couponjava.lang.Exception
- Thrown if the coupon cannot be resetpublic abstract double calibFlatSpread(ValuationParams valParams, PricerParams pricerParams, ComponentMarketParams mktParams, QuotingParams quotingParams) throws java.lang.Exception
valParams
- ValuationParamspricerParams
- PricerParamsmktParams
- ComponentMarketParamsjava.lang.Exception
- Thrown if cannot calibrate