public class CreditCurveScenarioContainer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
CC_BASE
CC Scenario Base
|
static int |
CC_FLAT_DN
CC Scenario Parallel Down
|
static int |
CC_FLAT_UP
CC Scenario Parallel Up
|
static int |
CC_RR_FLAT_DN
CC Scenario Recovery Parallel Down
|
static int |
CC_RR_FLAT_UP
CC Scenario Recovery Parallel Up
|
static int |
CC_TENOR_DN
CC Scenario Tenor Down
|
static int |
CC_TENOR_UP
CC Scenario Tenor Up
|
Constructor and Description |
---|
CreditCurveScenarioContainer(CalibratableComponent[] aCalibInst,
double dblCouponBump,
double dblRecoveryBump)
Construct CreditCurveScenarioContainer from the array of calibration instruments, the coupon bump
parameter, and the recovery bump parameter
|
Modifier and Type | Method and Description |
---|---|
CreditCurve |
base()
Return the base credit curve
|
CreditCurve |
bumpDown()
Return the bump Down credit curve
|
CreditCurve |
bumpRecoveryDown()
Return the recovery bump Down credit curve
|
CreditCurve |
bumpRecoveryUp()
Return the recovery bump up credit curve
|
CreditCurve |
bumpUp()
Return the bump up credit curve
|
boolean |
cookCustomCC(java.lang.String strName,
java.lang.String strCustomName,
ValuationParams valParams,
MergedDiscountForwardCurve dc,
GovvieCurve gc,
java.lang.String[] astrCalibMeasure,
double[] adblQuote,
double dblRecovery,
LatentStateFixingsContainer lsfc,
ValuationCustomizationParams vcp,
boolean bFlat,
ManifestMeasureTweak rvtpDC,
ManifestMeasureTweak rvtpTSY,
ManifestMeasureTweak rvtpCC)
Cook the credit curve according to the desired tweak parameters
|
boolean |
cookScenarioCC(java.lang.String strName,
ValuationParams valParams,
MergedDiscountForwardCurve dc,
GovvieCurve gc,
java.lang.String[] astrCalibMeasure,
double[] adblQuote,
double dblRecovery,
LatentStateFixingsContainer lsfc,
ValuationCustomizationParams vcp,
boolean bFlat,
int iScenario)
Cook and save the credit curves corresponding to the scenario specified
|
CaseInsensitiveTreeMap<CreditCurve> |
custom()
Return the Custom credit curve map
|
CaseInsensitiveTreeMap<CreditCurve> |
tenorBumpDown()
Return the tenor bump Down credit curve map
|
CaseInsensitiveTreeMap<CreditCurve> |
tenorBumpUp()
Return the tenor bump up credit curve map
|
public static final int CC_BASE
public static final int CC_FLAT_UP
public static final int CC_FLAT_DN
public static final int CC_TENOR_UP
public static final int CC_TENOR_DN
public static final int CC_RR_FLAT_UP
public static final int CC_RR_FLAT_DN
public CreditCurveScenarioContainer(CalibratableComponent[] aCalibInst, double dblCouponBump, double dblRecoveryBump) throws java.lang.Exception
aCalibInst
- Array of calibration instrumentsdblCouponBump
- Coupon BumpdblRecoveryBump
- Recovery Bumpjava.lang.Exception
- Thrown if inputs are invalidpublic boolean cookScenarioCC(java.lang.String strName, ValuationParams valParams, MergedDiscountForwardCurve dc, GovvieCurve gc, java.lang.String[] astrCalibMeasure, double[] adblQuote, double dblRecovery, LatentStateFixingsContainer lsfc, ValuationCustomizationParams vcp, boolean bFlat, int iScenario)
strName
- Credit Curve NamevalParams
- ValuationParamsdc
- Base Discount Curvegc
- Govvie CurveastrCalibMeasure
- Matched array of Calibration measuresadblQuote
- Matched array of QuotesdblRecovery
- Curve Recoverylsfc
- Latent State Fixings Containervcp
- Valuation Customization ParametersbFlat
- Whether the calibration is to a flat curveiScenario
- One of the values in the CC_ enum listed above.public boolean cookCustomCC(java.lang.String strName, java.lang.String strCustomName, ValuationParams valParams, MergedDiscountForwardCurve dc, GovvieCurve gc, java.lang.String[] astrCalibMeasure, double[] adblQuote, double dblRecovery, LatentStateFixingsContainer lsfc, ValuationCustomizationParams vcp, boolean bFlat, ManifestMeasureTweak rvtpDC, ManifestMeasureTweak rvtpTSY, ManifestMeasureTweak rvtpCC)
strName
- Scenario Credit Curve NamestrCustomName
- Scenario NamevalParams
- Valuation Parametersdc
- Discount Curvegc
- Govvie CurveastrCalibMeasure
- Array of calibration measuresadblQuote
- Double array of input quotesdblRecovery
- Recovery Ratelsfc
- Latent State Fixings Containervcp
- Valuation Customization ParametersbFlat
- Whether the calibration is flatrvtpDC
- Node Tweak Parameters for the Base Discount CurvervtpTSY
- Node Tweak Parameters for the TSY Discount CurvervtpCC
- Node Tweak Parameters for the Credit Curvepublic CreditCurve base()
public CreditCurve bumpUp()
public CreditCurve bumpDown()
public CreditCurve bumpRecoveryUp()
public CreditCurve bumpRecoveryDown()
public CaseInsensitiveTreeMap<CreditCurve> tenorBumpUp()
public CaseInsensitiveTreeMap<CreditCurve> tenorBumpDown()
public CaseInsensitiveTreeMap<CreditCurve> custom()