public abstract class CreditCurve extends java.lang.Object implements Curve
Modifier and Type | Method and Description |
---|---|
CalibratableComponent[] |
calibComp()
Retrieve the Calibration Components
|
java.lang.String |
currency()
Get the Currency
|
double |
effectiveRecovery(int iDate1,
int iDate2)
Calculate the time-weighted recovery between a pair of dates
|
double |
effectiveRecovery(JulianDate dt1,
JulianDate dt2)
Calculate the time-weighted recovery between a pair of dates
|
double |
effectiveRecovery(java.lang.String strTenor1,
java.lang.String strTenor2)
Calculate the time-weighted recovery between a pair of tenors
|
double |
effectiveSurvival(int iDate1,
int iDate2)
Calculate the time-weighted survival between a pair of 2 dates
|
double |
effectiveSurvival(JulianDate dt1,
JulianDate dt2)
Calculate the time-weighted survival between a pair of 2 dates
|
double |
effectiveSurvival(java.lang.String strTenor1,
java.lang.String strTenor2)
Calculate the time-weighted survival between a pair of 2 tenors
|
JulianDate |
epoch()
Get the Epoch Date
|
abstract CreditCurve |
flatCurve(double dblFlatNodeValue,
boolean bSingleNode,
double dblRecovery)
Create a flat hazard curve from the inputs
|
double |
hazard(JulianDate dt)
Calculate the hazard rate to the given date
|
double |
hazard(JulianDate dt1,
JulianDate dt2)
Calculate the hazard rate between a pair of forward dates
|
double |
hazard(java.lang.String strTenor)
Calculate the hazard rate to the given tenor
|
LatentStateLabel |
label()
Get the Curve Latent State Identifier Label
|
CaseInsensitiveTreeMap<java.lang.Double> |
manifestMeasure(java.lang.String strInstr)
Retrieve the Manifest Measure Map of the given Instrument used to construct the Curve
|
abstract double |
recovery(int iDate)
Calculate the recovery rate to the given date
|
double |
recovery(JulianDate dt)
Calculate the recovery rate to the given date
|
double |
recovery(java.lang.String strTenor)
Calculate the recovery rate to the given tenor
|
boolean |
setCCIS(CurveConstructionInputSet ccis)
Set the Curve Construction Input Set Parameters
|
void |
setInstrCalibInputs(ValuationParams valParam,
boolean bFlat,
MergedDiscountForwardCurve dc,
GovvieCurve gc,
CreditPricerParams pricerParam,
CalibratableComponent[] aCalibInst,
double[] adblCalibQuote,
java.lang.String[] astrCalibMeasure,
LatentStateFixingsContainer lsfc,
ValuationCustomizationParams quotingParams)
Set the calibration inputs for the CreditCurve
|
boolean |
setSpecificDefault(int iSpecificDefaultDate)
Set the Specific Default Date
|
abstract double |
survival(int iDate)
Calculate the survival to the given date
|
double |
survival(JulianDate dt)
Calculate the survival to the given date
|
double |
survival(java.lang.String strTenor)
Calculate the survival to the given tenor
|
boolean |
unsetSpecificDefault()
Remove the Specific Default Date
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
customTweakManifestMeasure, customTweakQuantificationMetric, parallelShiftManifestMeasure, parallelShiftQuantificationMetric, shiftManifestMeasure
public LatentStateLabel label()
Curve
public java.lang.String currency()
Curve
public JulianDate epoch()
Curve
public boolean setSpecificDefault(int iSpecificDefaultDate)
iSpecificDefaultDate
- Date of Specific Defaultpublic boolean unsetSpecificDefault()
public abstract double survival(int iDate) throws java.lang.Exception
iDate
- Datejava.lang.Exception
- Thrown if the survival probability cannot be calculatedpublic double survival(JulianDate dt) throws java.lang.Exception
dt
- Datejava.lang.Exception
- Thrown if the survival probability cannot be calculatedpublic double survival(java.lang.String strTenor) throws java.lang.Exception
strTenor
- Tenorjava.lang.Exception
- Thrown if the survival probability cannot be calculatedpublic double effectiveSurvival(int iDate1, int iDate2) throws java.lang.Exception
iDate1
- First DateiDate2
- Second Datejava.lang.Exception
- Thrown if the survival probability cannot be calculatedpublic double effectiveSurvival(JulianDate dt1, JulianDate dt2) throws java.lang.Exception
dt1
- First Datedt2
- Second Datejava.lang.Exception
- Thrown if the survival probability cannot be calculatedpublic double effectiveSurvival(java.lang.String strTenor1, java.lang.String strTenor2) throws java.lang.Exception
strTenor1
- First tenorstrTenor2
- Second tenorjava.lang.Exception
- Thrown if the survival probability cannot be calculatedpublic abstract double recovery(int iDate) throws java.lang.Exception
iDate
- Datejava.lang.Exception
- Thrown if the Recovery rate cannot be calculatedpublic double recovery(JulianDate dt) throws java.lang.Exception
dt
- Datejava.lang.Exception
- Thrown if the Recovery rate cannot be calculatedpublic double recovery(java.lang.String strTenor) throws java.lang.Exception
strTenor
- Tenorjava.lang.Exception
- Thrown if the Recovery rate cannot be calculatedpublic double effectiveRecovery(int iDate1, int iDate2) throws java.lang.Exception
iDate1
- First DateiDate2
- Second Datejava.lang.Exception
- Thrown if the recovery cannot be calculatedpublic double effectiveRecovery(JulianDate dt1, JulianDate dt2) throws java.lang.Exception
dt1
- First Datedt2
- Second Datejava.lang.Exception
- Thrown if the recovery cannot be calculatedpublic double effectiveRecovery(java.lang.String strTenor1, java.lang.String strTenor2) throws java.lang.Exception
strTenor1
- First TenorstrTenor2
- Second Tenorjava.lang.Exception
- Thrown if the recovery cannot be calculatedpublic double hazard(JulianDate dt1, JulianDate dt2) throws java.lang.Exception
dt1
- First Datedt2
- Second Datejava.lang.Exception
- Thrown if the hazard rate cannot be calculatedpublic double hazard(JulianDate dt) throws java.lang.Exception
dt
- Datejava.lang.Exception
- Thrown if the hazard rate cannot be calculatedpublic double hazard(java.lang.String strTenor) throws java.lang.Exception
strTenor
- Tenorjava.lang.Exception
- Thrown if the hazard rate cannot be calculatedpublic abstract CreditCurve flatCurve(double dblFlatNodeValue, boolean bSingleNode, double dblRecovery)
dblFlatNodeValue
- Flat hazard node valuebSingleNode
- Uses a single node for Calibration (True)dblRecovery
- (Optional) Recovery to be used in creation of the flat curvepublic void setInstrCalibInputs(ValuationParams valParam, boolean bFlat, MergedDiscountForwardCurve dc, GovvieCurve gc, CreditPricerParams pricerParam, CalibratableComponent[] aCalibInst, double[] adblCalibQuote, java.lang.String[] astrCalibMeasure, LatentStateFixingsContainer lsfc, ValuationCustomizationParams quotingParams)
valParam
- ValuationParamsbFlat
- Flat calibration desired (True)dc
- Base Discount Curvegc
- Govvie CurvepricerParam
- PricerParamsaCalibInst
- Array of calibration instrumentsadblCalibQuote
- Array of calibration quotesastrCalibMeasure
- Array of calibration measureslsfc
- Latent State Fixings ContainerquotingParams
- Quoting Parameterspublic boolean setCCIS(CurveConstructionInputSet ccis)
Curve
public CalibratableComponent[] calibComp()
Curve
public CaseInsensitiveTreeMap<java.lang.Double> manifestMeasure(java.lang.String strInstr)
Curve
manifestMeasure
in interface Curve
strInstr
- The Calibration Instrument's Code whose Manifest Measure Map is sought