Package org.drip.product.params
Class CDXRefDataParams
java.lang.Object
org.drip.product.params.CDXRefDataParams
public class CDXRefDataParams
extends java.lang.Object
CDXRefDataParams contains the complete set of reference data that corresponds to the contract of a
standard CDX. It consists of the following category and fields:
It also exports serialization into and de-serialization out of byte arrays.
- Descriptive - Index Label, Index Name, Curve Name, Index Class, Index Group Name, Index Short Group Name, Index Short Name, Short Name
- Issuer ID - Curve ID, Red ID, Series, Version, Curvy Curve ID, Location, Bloomberg Ticker
- Quote Details - Quote As CDS
- Date - Issue Date, Maturity Date
- Coupon Parameters - Coupon Rate, Currency, Day Count, Full First Stub, Frequency
- Component Details - Original Count, Defaulted Count
- Payoff Details - Knock-out on Default, Pay Accrued Amount, Recovery on Default
- Other - Index Life Span, Index Factor
It also exports serialization into and de-serialization out of byte arrays.
- Module = Product Core Module
- Library = Fixed Income Analytics
- Project = Product Components/Baskets for Credit, FRA, FX, Govvie, Rates, and Option AssetClasses
- Package = Fixed Income Product Customization Parameters
- Author:
- Lakshmi Krishnamurthy
-
Field Summary
Fields Modifier and Type Field Description boolean_bFullFirstStubIndex Full First Stubboolean_bKnockOutOnDefaultIndex Knock-out On Defaultboolean_bPayAccruedIndex Pay Accruedboolean_bQuoteAsCDSIndex Quote As CDSdouble_dblCouponIndex Coupon (bp)double_dblIndexFactorIndex Factordouble_dblRecoveryIndex RecoveryJulianDate_dtIssueIndex Issue DateJulianDate_dtMaturityIndex Maturity Dateint_iDefaultedComponentCountIndex Defaulted Component Countint_iFrequencyIndex Frequencyint_iIndexLifeSpanIndex Life Spanint_iIndexSeriesIndex Seriesint_iIndexVersionIndex Versionint_iOriginalComponentCountIndex Original Component Countjava.lang.String_strBBGTickerIndex Bloomberg Tickerjava.lang.String_strCurrencyIndex Currencyjava.lang.String_strCurveIDIndex Curve IDjava.lang.String_strCurveNameIndex Curve Namejava.lang.String_strCurvyCurveIDIndex Curvy Curve IDjava.lang.String_strDayCountIndex DayCountjava.lang.String_strIndexClassIndex Classjava.lang.String_strIndexGroupNameIndex Group Namejava.lang.String_strIndexLabelIndex Labeljava.lang.String_strIndexNameIndex Namejava.lang.String_strIndexShortGroupNameIndex Short Group Namejava.lang.String_strIndexShortNameIndex Short Namejava.lang.String_strLocationIndex Locationjava.lang.String_strRedIDIndex Red IDjava.lang.String_strShortNameIndex Short Namejava.lang.String_strSPNIndex Curve SPN -
Constructor Summary
Constructors Constructor Description CDXRefDataParams()Empty Default constructor -
Method Summary
Modifier and Type Method Description static CDXRefDataParamsCreateCDXRefDataBuilder(java.lang.String strCurveID, java.lang.String strSPN, java.lang.String strIndexLabel, java.lang.String strIndexName, java.lang.String strCurveName, int iIssueDate, int iMaturityDate, double dblCoupon, java.lang.String strCurrency, java.lang.String strDayCount, boolean bFullFirstStub, double dblRecovery, int iFrequency, java.lang.String strRedID, java.lang.String strIndexClass, int iIndexSeries, java.lang.String strIndexGroupName, java.lang.String strIndexShortName, java.lang.String strIndexShortGroupName, int iIndexVersion, int iIndexLifeSpan, java.lang.String strCurvyCurveID, double dblIndexFactor, int iOriginalComponentCount, int iDefaultedComponentCount, java.lang.String strLocation, boolean bPayAccrued, boolean bKnockOutOnDefault, boolean bQuoteAsCDS, java.lang.String strBBGTicker, java.lang.String strShortName)Create a CDXRefData instance from valid individual parameters (so no additional validation is performed).booleansetBBGTicker(java.lang.String strBBGTicker)Set the Index BBG Tickerjava.lang.StringsetConstructionString()Return the stringified set of parameters in a java call that can be statically used to re-construct the index.booleansetCoupon(double dblCoupon)Set the Index CouponbooleansetCurrency(java.lang.String strCurrency)Set the Index CurrencybooleansetCurveID(java.lang.String strCurveID)Set the Index Curve IDbooleansetCurveName(java.lang.String strCurveName)Set the Index Curve NamebooleansetCurvyCurveID(java.lang.String strCurvyCurveID)Set the Index Composite Curve IDbooleansetDayCount(java.lang.String strDayCount)Set the Index Day CountbooleansetDefaultedComponentCount(int iDefaultedComponentCount)Set the Number of Defaulted Components in the IndexbooleansetFrequency(int iFrequency)Set the Index Coupon FrequencybooleansetFullFirstStub(boolean bFullFirstStub)Set the flag indicating whether the Index has a Full First StubbooleansetIndexClass(java.lang.String strIndexClass)Set the Index ClassbooleansetIndexFactor(double dblIndexFactor)Set the Index FactorbooleansetIndexGroupName(java.lang.String strIndexGroupName)Set the Index Group NamebooleansetIndexLabel(java.lang.String strIndexLabel)Set the Index LabelbooleansetIndexLifeSpan(int iIndexLifeSpan)Set the Index Life SpanbooleansetIndexName(java.lang.String strIndexName)Set the Index NamebooleansetIndexSeries(int iIndexSeries)Set the Index SeriesbooleansetIndexShortGroupName(java.lang.String strIndexShortGroupName)Set the Index Short Group NamebooleansetIndexShortName(java.lang.String strIndexShortName)Set the Index Short NamebooleansetIndexVersion(int iIndexVersion)Set the Index VersionbooleansetIssueDate(JulianDate dtIssue)Set the Index Issue DatebooleansetKnockOutOnDefault(boolean bKnockOutOnDefault)Set if the Index knocks out on DefaultbooleansetLocation(java.lang.String strLocation)Set the Index LocationbooleansetMaturityDate(JulianDate dtMaturity)Set the Index Maturity DatebooleansetOriginalComponentCount(int iOriginalComponentCount)Set the Number of Original Components in the IndexbooleansetPayAccrued(boolean bPayAccrued)Set if the Index pays accrued on terminationbooleansetQuoteAsCDS(boolean bQuoteAsCDS)Set whether the quote is marked as a CDSbooleansetRecovery(double dblRecovery)Set the Index RecoverybooleansetRedID(java.lang.String strRedID)Set the Index Red IDbooleansetShortName(java.lang.String strShortName)Set the index short namebooleansetSPN(java.lang.String strSPN)Set the Index SPNbooleanvalidate()Validate the CDXRefData instanceMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_strCurveID
public java.lang.String _strCurveIDIndex Curve ID -
_strSPN
public java.lang.String _strSPNIndex Curve SPN -
_strIndexLabel
public java.lang.String _strIndexLabelIndex Label -
_strIndexName
public java.lang.String _strIndexNameIndex Name -
_strCurveName
public java.lang.String _strCurveNameIndex Curve Name -
_dtIssue
Index Issue Date -
_dtMaturity
Index Maturity Date -
_dblCoupon
public double _dblCouponIndex Coupon (bp) -
_strCurrency
public java.lang.String _strCurrencyIndex Currency -
_strDayCount
public java.lang.String _strDayCountIndex DayCount -
_bFullFirstStub
public boolean _bFullFirstStubIndex Full First Stub -
_dblRecovery
public double _dblRecoveryIndex Recovery -
_iFrequency
public int _iFrequencyIndex Frequency -
_strRedID
public java.lang.String _strRedIDIndex Red ID -
_strIndexClass
public java.lang.String _strIndexClassIndex Class -
_iIndexSeries
public int _iIndexSeriesIndex Series -
_strIndexGroupName
public java.lang.String _strIndexGroupNameIndex Group Name -
_strIndexShortName
public java.lang.String _strIndexShortNameIndex Short Name -
_strIndexShortGroupName
public java.lang.String _strIndexShortGroupNameIndex Short Group Name -
_iIndexVersion
public int _iIndexVersionIndex Version -
_iIndexLifeSpan
public int _iIndexLifeSpanIndex Life Span -
_strCurvyCurveID
public java.lang.String _strCurvyCurveIDIndex Curvy Curve ID -
_dblIndexFactor
public double _dblIndexFactorIndex Factor -
_iOriginalComponentCount
public int _iOriginalComponentCountIndex Original Component Count -
_iDefaultedComponentCount
public int _iDefaultedComponentCountIndex Defaulted Component Count -
_strLocation
public java.lang.String _strLocationIndex Location -
_bPayAccrued
public boolean _bPayAccruedIndex Pay Accrued -
_bKnockOutOnDefault
public boolean _bKnockOutOnDefaultIndex Knock-out On Default -
_bQuoteAsCDS
public boolean _bQuoteAsCDSIndex Quote As CDS -
_strBBGTicker
public java.lang.String _strBBGTickerIndex Bloomberg Ticker -
_strShortName
public java.lang.String _strShortNameIndex Short Name
-
-
Constructor Details
-
CDXRefDataParams
public CDXRefDataParams()Empty Default constructor
-
-
Method Details
-
CreateCDXRefDataBuilder
public static final CDXRefDataParams CreateCDXRefDataBuilder(java.lang.String strCurveID, java.lang.String strSPN, java.lang.String strIndexLabel, java.lang.String strIndexName, java.lang.String strCurveName, int iIssueDate, int iMaturityDate, double dblCoupon, java.lang.String strCurrency, java.lang.String strDayCount, boolean bFullFirstStub, double dblRecovery, int iFrequency, java.lang.String strRedID, java.lang.String strIndexClass, int iIndexSeries, java.lang.String strIndexGroupName, java.lang.String strIndexShortName, java.lang.String strIndexShortGroupName, int iIndexVersion, int iIndexLifeSpan, java.lang.String strCurvyCurveID, double dblIndexFactor, int iOriginalComponentCount, int iDefaultedComponentCount, java.lang.String strLocation, boolean bPayAccrued, boolean bKnockOutOnDefault, boolean bQuoteAsCDS, java.lang.String strBBGTicker, java.lang.String strShortName)Create a CDXRefData instance from valid individual parameters (so no additional validation is performed).- Parameters:
strCurveID- Index Curve IDstrSPN- Index SPNstrIndexLabel- Index LabelstrIndexName- Index NamestrCurveName- Index Curve NameiIssueDate- Index Issue DateiMaturityDate- Index Maturity DatedblCoupon- Index CouponstrCurrency- Index CurrencystrDayCount- Index Day Count ConventionbFullFirstStub- Index Flag indicating whether it is a full front stubdblRecovery- Index Recovery RateiFrequency- Index FrequencystrRedID- Index Reference Entity Database IDstrIndexClass- Index ClassiIndexSeries- Index SeriesstrIndexGroupName- Index Group NamestrIndexShortName- Index Short NamestrIndexShortGroupName- Index SHort Group NameiIndexVersion- Index VersioniIndexLifeSpan- Index Life SpanstrCurvyCurveID- Full Index Curve IDdblIndexFactor- Index FactoriOriginalComponentCount- Original Index Component CountiDefaultedComponentCount- Defaulted Component Count in the IndexstrLocation- Index Domicile LocationbPayAccrued- Does Index Pay AccruedbKnockOutOnDefault- Does the Index Knock Out On DefaultbQuoteAsCDS- Is the Index Quoted as a CDS (i.e., spread/up-front)strBBGTicker- Index Bloomberg TickerstrShortName- Index Short Name- Returns:
- The CDXRefData instance
-
setCurveID
public boolean setCurveID(java.lang.String strCurveID)Set the Index Curve ID- Parameters:
strCurveID- Index Curve ID- Returns:
- TRUE if successful
-
setSPN
public boolean setSPN(java.lang.String strSPN)Set the Index SPN- Parameters:
strSPN- Index SPN- Returns:
- TRUE if successful
-
setIndexLabel
public boolean setIndexLabel(java.lang.String strIndexLabel)Set the Index Label- Parameters:
strIndexLabel- Index Label- Returns:
- TRUE if successful
-
setIndexName
public boolean setIndexName(java.lang.String strIndexName)Set the Index Name- Parameters:
strIndexName- Index Name- Returns:
- TRUE if successful
-
setCurveName
public boolean setCurveName(java.lang.String strCurveName)Set the Index Curve Name- Parameters:
strCurveName- Index Curve Name- Returns:
- TRUE if successful
-
setIssueDate
Set the Index Issue Date- Parameters:
dtIssue- Index Issue Date- Returns:
- TRUE if successful
-
setMaturityDate
Set the Index Maturity Date- Parameters:
dtMaturity- Index Maturity Date- Returns:
- TRUE if successful
-
setCoupon
public boolean setCoupon(double dblCoupon)Set the Index Coupon- Parameters:
dblCoupon- Index Coupon- Returns:
- TRUE if successful
-
setCurrency
public boolean setCurrency(java.lang.String strCurrency)Set the Index Currency- Parameters:
strCurrency- Index Currency- Returns:
- TRUE if successful
-
setDayCount
public boolean setDayCount(java.lang.String strDayCount)Set the Index Day Count- Parameters:
strDayCount- Index Day Count- Returns:
- TRUE if successful
-
setFullFirstStub
public boolean setFullFirstStub(boolean bFullFirstStub)Set the flag indicating whether the Index has a Full First Stub- Parameters:
bFullFirstStub- Flag indicating whether the Index has a Full First Stub- Returns:
- TRUE if successful
-
setRecovery
public boolean setRecovery(double dblRecovery)Set the Index Recovery- Parameters:
dblRecovery- Index Recovery- Returns:
- TRUE if successful
-
setFrequency
public boolean setFrequency(int iFrequency)Set the Index Coupon Frequency- Parameters:
iFrequency- Index Coupon Frequency- Returns:
- TRUE if successful
-
setRedID
public boolean setRedID(java.lang.String strRedID)Set the Index Red ID- Parameters:
strRedID- Index Red ID- Returns:
- TRUE if successful
-
setIndexClass
public boolean setIndexClass(java.lang.String strIndexClass)Set the Index Class- Parameters:
strIndexClass- Index Class- Returns:
- TRUE if successful
-
setIndexSeries
public boolean setIndexSeries(int iIndexSeries)Set the Index Series- Parameters:
iIndexSeries- Index Series- Returns:
- TRUE if successful
-
setIndexGroupName
public boolean setIndexGroupName(java.lang.String strIndexGroupName)Set the Index Group Name- Parameters:
strIndexGroupName- Index Group Name- Returns:
- TRUE if successful
-
setIndexShortName
public boolean setIndexShortName(java.lang.String strIndexShortName)Set the Index Short Name- Parameters:
strIndexShortName- Index Short Name- Returns:
- TRUE if successful
-
setIndexShortGroupName
public boolean setIndexShortGroupName(java.lang.String strIndexShortGroupName)Set the Index Short Group Name- Parameters:
strIndexShortGroupName- Index Short Group Name- Returns:
- TRUE if successful
-
setIndexVersion
public boolean setIndexVersion(int iIndexVersion)Set the Index Version- Parameters:
iIndexVersion- Index Version- Returns:
- TRUE if successful
-
setIndexLifeSpan
public boolean setIndexLifeSpan(int iIndexLifeSpan)Set the Index Life Span- Parameters:
iIndexLifeSpan- Index Life Span- Returns:
- TRUE if successful
-
setCurvyCurveID
public boolean setCurvyCurveID(java.lang.String strCurvyCurveID)Set the Index Composite Curve ID- Parameters:
strCurvyCurveID- Index Composite Curve ID- Returns:
- TRUE if successful
-
setIndexFactor
public boolean setIndexFactor(double dblIndexFactor)Set the Index Factor- Parameters:
dblIndexFactor- Index Factor- Returns:
- TRUE if successful
-
setOriginalComponentCount
public boolean setOriginalComponentCount(int iOriginalComponentCount)Set the Number of Original Components in the Index- Parameters:
iOriginalComponentCount- Number of Original Components in the Index- Returns:
- TRUE if successful
-
setDefaultedComponentCount
public boolean setDefaultedComponentCount(int iDefaultedComponentCount)Set the Number of Defaulted Components in the Index- Parameters:
iDefaultedComponentCount- Number of Defaulted Components in the Index- Returns:
- TRUE if successful
-
setLocation
public boolean setLocation(java.lang.String strLocation)Set the Index Location- Parameters:
strLocation- Index Location- Returns:
- TRUE if successful
-
setPayAccrued
public boolean setPayAccrued(boolean bPayAccrued)Set if the Index pays accrued on termination- Parameters:
bPayAccrued- Flag indicating if the Index pays accrued on termination- Returns:
- TRUE if successful
-
setKnockOutOnDefault
public boolean setKnockOutOnDefault(boolean bKnockOutOnDefault)Set if the Index knocks out on Default- Parameters:
bKnockOutOnDefault- Flag indicating if the Index knocks out on Default- Returns:
- TRUE if successful
-
setQuoteAsCDS
public boolean setQuoteAsCDS(boolean bQuoteAsCDS)Set whether the quote is marked as a CDS- Parameters:
bQuoteAsCDS- Flag indicating whether the quote is marked as a CDS- Returns:
- TRUE if successful
-
setBBGTicker
public boolean setBBGTicker(java.lang.String strBBGTicker)Set the Index BBG Ticker- Parameters:
strBBGTicker- Index BBG Ticker- Returns:
- TRUE if successful
-
setShortName
public boolean setShortName(java.lang.String strShortName)Set the index short name- Parameters:
strShortName- Index Short Name- Returns:
- TRUE if successful
-
validate
public boolean validate()Validate the CDXRefData instance- Returns:
- TRUE if successful
-
setConstructionString
public java.lang.String setConstructionString()Return the stringified set of parameters in a java call that can be statically used to re-construct the index.- Returns:
- Set of Stringified parameters as a java call.
-