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
_bFullFirstStub
Index Full First Stubboolean
_bKnockOutOnDefault
Index Knock-out On Defaultboolean
_bPayAccrued
Index Pay Accruedboolean
_bQuoteAsCDS
Index Quote As CDSdouble
_dblCoupon
Index Coupon (bp)double
_dblIndexFactor
Index Factordouble
_dblRecovery
Index RecoveryJulianDate
_dtIssue
Index Issue DateJulianDate
_dtMaturity
Index Maturity Dateint
_iDefaultedComponentCount
Index Defaulted Component Countint
_iFrequency
Index Frequencyint
_iIndexLifeSpan
Index Life Spanint
_iIndexSeries
Index Seriesint
_iIndexVersion
Index Versionint
_iOriginalComponentCount
Index Original Component Countjava.lang.String
_strBBGTicker
Index Bloomberg Tickerjava.lang.String
_strCurrency
Index Currencyjava.lang.String
_strCurveID
Index Curve IDjava.lang.String
_strCurveName
Index Curve Namejava.lang.String
_strCurvyCurveID
Index Curvy Curve IDjava.lang.String
_strDayCount
Index DayCountjava.lang.String
_strIndexClass
Index Classjava.lang.String
_strIndexGroupName
Index Group Namejava.lang.String
_strIndexLabel
Index Labeljava.lang.String
_strIndexName
Index Namejava.lang.String
_strIndexShortGroupName
Index Short Group Namejava.lang.String
_strIndexShortName
Index Short Namejava.lang.String
_strLocation
Index Locationjava.lang.String
_strRedID
Index Red IDjava.lang.String
_strShortName
Index Short Namejava.lang.String
_strSPN
Index Curve SPN -
Constructor Summary
Constructors Constructor Description CDXRefDataParams()
Empty Default constructor -
Method Summary
Modifier and Type Method Description static 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).boolean
setBBGTicker(java.lang.String strBBGTicker)
Set the Index BBG Tickerjava.lang.String
setConstructionString()
Return the stringified set of parameters in a java call that can be statically used to re-construct the index.boolean
setCoupon(double dblCoupon)
Set the Index Couponboolean
setCurrency(java.lang.String strCurrency)
Set the Index Currencyboolean
setCurveID(java.lang.String strCurveID)
Set the Index Curve IDboolean
setCurveName(java.lang.String strCurveName)
Set the Index Curve Nameboolean
setCurvyCurveID(java.lang.String strCurvyCurveID)
Set the Index Composite Curve IDboolean
setDayCount(java.lang.String strDayCount)
Set the Index Day Countboolean
setDefaultedComponentCount(int iDefaultedComponentCount)
Set the Number of Defaulted Components in the Indexboolean
setFrequency(int iFrequency)
Set the Index Coupon Frequencyboolean
setFullFirstStub(boolean bFullFirstStub)
Set the flag indicating whether the Index has a Full First Stubboolean
setIndexClass(java.lang.String strIndexClass)
Set the Index Classboolean
setIndexFactor(double dblIndexFactor)
Set the Index Factorboolean
setIndexGroupName(java.lang.String strIndexGroupName)
Set the Index Group Nameboolean
setIndexLabel(java.lang.String strIndexLabel)
Set the Index Labelboolean
setIndexLifeSpan(int iIndexLifeSpan)
Set the Index Life Spanboolean
setIndexName(java.lang.String strIndexName)
Set the Index Nameboolean
setIndexSeries(int iIndexSeries)
Set the Index Seriesboolean
setIndexShortGroupName(java.lang.String strIndexShortGroupName)
Set the Index Short Group Nameboolean
setIndexShortName(java.lang.String strIndexShortName)
Set the Index Short Nameboolean
setIndexVersion(int iIndexVersion)
Set the Index Versionboolean
setIssueDate(JulianDate dtIssue)
Set the Index Issue Dateboolean
setKnockOutOnDefault(boolean bKnockOutOnDefault)
Set if the Index knocks out on Defaultboolean
setLocation(java.lang.String strLocation)
Set the Index Locationboolean
setMaturityDate(JulianDate dtMaturity)
Set the Index Maturity Dateboolean
setOriginalComponentCount(int iOriginalComponentCount)
Set the Number of Original Components in the Indexboolean
setPayAccrued(boolean bPayAccrued)
Set if the Index pays accrued on terminationboolean
setQuoteAsCDS(boolean bQuoteAsCDS)
Set whether the quote is marked as a CDSboolean
setRecovery(double dblRecovery)
Set the Index Recoveryboolean
setRedID(java.lang.String strRedID)
Set the Index Red IDboolean
setShortName(java.lang.String strShortName)
Set the index short nameboolean
setSPN(java.lang.String strSPN)
Set the Index SPNboolean
validate()
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.
-