Package org.drip.historical.attribution
Class CDSMarketSnap
java.lang.Object
org.drip.historical.attribution.PositionMarketSnap
org.drip.historical.attribution.CDSMarketSnap
public class CDSMarketSnap extends PositionMarketSnap
CDSMarketSnap contains the Metrics Snapshot associated with the relevant Manifest Measures for the given
Credit Default Swap Position.
- Module = Computational Core Module
- Library = Computation Support
- Project = Historical State Processing Utilities
- Package = Position Market Change Components Attribution
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description CDSMarketSnap(JulianDate dtSnap, double dblMarketValue)CDSMarketSnap Constructor -
Method Summary
Modifier and Type Method Description doubleaccrued()Retrieve the AccrueddoublecleanDV01()Retrieve the Clean DV01doublecouponPV()Retrieve the Coupon PVjava.lang.StringcreditLabel()Retrieve the Credit LabeldoublecumulativeCouponAmount()Retrieve the Cumulative Coupon AmountdoublecurrentFairPremium()Retrieve the Current Fair PremiumJulianDateeffectiveDate()Retrieve the Effective DatedoublefixedCoupon()Retrieve the Fixed CoupondoubleinitialFairPremium()Retrieve the Initial Fair PremiumdoublelossPV()Retrieve the Loss PVJulianDatematurityDate()Retrieve the Maturity DatedoublerecoveryRate()Retrieve the Recovery RatedoublerollDownFairPremium()Retrieve the Roll Down Fair PremiumbooleansetAccrued(double dblAccrued)Set the AccruedbooleansetCleanDV01(double dblCleanDV01)Set the Clean DV01booleansetCouponPV(double dblCouponPV)Set the Coupon PVbooleansetCreditLabel(java.lang.String strCreditLabel)Set the Credit LabelbooleansetCumulativeCouponAmount(double dblCumulativeCouponAmount)Set the Cumulative Coupon AmountbooleansetCurrentFairPremium(double dblCurrentFairPremium)Set the Current Fair PremiumbooleansetEffectiveDate(JulianDate dtEffective)Set the Effective DatebooleansetFairPremiumMarketFactor(double dblFairPremium, double dblFairPremiumSensitivity, double dblFairPremiumRollDown)Set the Fair Premium and Position SensitivitybooleansetFixedCoupon(double dblFixedCoupon)Set the Fixed CouponbooleansetInitialFairPremium(double dblInitialFairPremium)Set the Initial Fair PremiumbooleansetLossPV(double dblLossPV)Set the Loss PVbooleansetMaturityDate(JulianDate dtMaturity)Set the Maturity DatebooleansetRecoveryRate(double dblRecoveryRate)Set the Recovery RatebooleansetRollDownFairPremium(double dblRollDownFairPremium)Set the Roll Down Fair PremiumMethods inherited from class org.drip.historical.attribution.PositionMarketSnap
addManifestMeasureSnap, c1, content, date, header, manifestMeasures, manifestMeasureSnap, marketMeasureName, marketMeasureValue, marketValue, r1, setC1, setDate, setMarketMeasureName, setMarketMeasureValue, setR1, setR1, snapDateMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
CDSMarketSnap
CDSMarketSnap Constructor- Parameters:
dtSnap- The Snapshot DatedblMarketValue- The Snapshot Market Value- Throws:
java.lang.Exception- Thrown if the Inputs are Invalid
-
-
Method Details
-
setFairPremiumMarketFactor
public boolean setFairPremiumMarketFactor(double dblFairPremium, double dblFairPremiumSensitivity, double dblFairPremiumRollDown)Set the Fair Premium and Position Sensitivity- Parameters:
dblFairPremium- The Fair PremiumdblFairPremiumSensitivity- The Position Fair Premium SensitivitydblFairPremiumRollDown- The Position Fair Premium Roll Down- Returns:
- TRUE - The Fair Premium and the Position Sensitivity successfully set
-
setEffectiveDate
Set the Effective Date- Parameters:
dtEffective- The Effective Date- Returns:
- TRUE - The Effective Date successfully set
-
effectiveDate
Retrieve the Effective Date- Returns:
- The Effective Date
-
setMaturityDate
Set the Maturity Date- Parameters:
dtMaturity- The Maturity Date- Returns:
- TRUE - The Maturity Date successfully set
-
maturityDate
Retrieve the Maturity Date- Returns:
- The Maturity Date
-
setInitialFairPremium
public boolean setInitialFairPremium(double dblInitialFairPremium)Set the Initial Fair Premium- Parameters:
dblInitialFairPremium- The Initial Fair Premium- Returns:
- TRUE - The Initial Fair Premium Successfully set
-
initialFairPremium
public double initialFairPremium() throws java.lang.ExceptionRetrieve the Initial Fair Premium- Returns:
- The Initial Fair Premium
- Throws:
java.lang.Exception- Thrown if the Initial Fair Premium cannot be obtained
-
setCurrentFairPremium
public boolean setCurrentFairPremium(double dblCurrentFairPremium)Set the Current Fair Premium- Parameters:
dblCurrentFairPremium- The Current Fair Premium- Returns:
- TRUE - The Current Fair Premium Successfully Set
-
currentFairPremium
public double currentFairPremium() throws java.lang.ExceptionRetrieve the Current Fair Premium- Returns:
- The Current Fair Premium
- Throws:
java.lang.Exception- Thrown if the Current Fair Premium cannot be obtained
-
setFixedCoupon
public boolean setFixedCoupon(double dblFixedCoupon)Set the Fixed Coupon- Parameters:
dblFixedCoupon- The Fixed Coupon- Returns:
- TRUE - The Fixed Coupon Successfully Set
-
fixedCoupon
public double fixedCoupon() throws java.lang.ExceptionRetrieve the Fixed Coupon- Returns:
- The Fixed Coupon
- Throws:
java.lang.Exception- Thrown if the Fixed Coupon cannot be obtained
-
setCleanDV01
public boolean setCleanDV01(double dblCleanDV01)Set the Clean DV01- Parameters:
dblCleanDV01- The Clean DV01- Returns:
- TRUE - The Clean DV01 Successfully Set
-
cleanDV01
public double cleanDV01() throws java.lang.ExceptionRetrieve the Clean DV01- Returns:
- The Clean DV01
- Throws:
java.lang.Exception- Thrown if the Clean DV01 cannot be obtained
-
setRollDownFairPremium
public boolean setRollDownFairPremium(double dblRollDownFairPremium)Set the Roll Down Fair Premium- Parameters:
dblRollDownFairPremium- The Roll Down Fair Premium- Returns:
- TRUE - The Roll Down Fair Premium Successfully Set
-
rollDownFairPremium
public double rollDownFairPremium() throws java.lang.ExceptionRetrieve the Roll Down Fair Premium- Returns:
- The Roll Down Fair Premium
- Throws:
java.lang.Exception- Thrown if the Roll Down Fair Premium cannot be obtained
-
setAccrued
public boolean setAccrued(double dblAccrued)Set the Accrued- Parameters:
dblAccrued- The Accrued- Returns:
- TRUE - The Accrued successfully set
-
accrued
public double accrued() throws java.lang.ExceptionRetrieve the Accrued- Returns:
- The Accrued
- Throws:
java.lang.Exception- Thrown if the Accrued cannot be obtained
-
setCumulativeCouponAmount
public boolean setCumulativeCouponAmount(double dblCumulativeCouponAmount)Set the Cumulative Coupon Amount- Overrides:
setCumulativeCouponAmountin classPositionMarketSnap- Parameters:
dblCumulativeCouponAmount- The Cumulative Coupon Amount- Returns:
- TRUE - The Cumulative Coupon Amount successfully set
-
cumulativeCouponAmount
public double cumulativeCouponAmount() throws java.lang.ExceptionRetrieve the Cumulative Coupon Amount- Overrides:
cumulativeCouponAmountin classPositionMarketSnap- Returns:
- The Cumulative Coupon Amount
- Throws:
java.lang.Exception- Thrown if the Cumulative Coupon Amount cannot be obtained
-
setCreditLabel
public boolean setCreditLabel(java.lang.String strCreditLabel)Set the Credit Label- Parameters:
strCreditLabel- Credit Label- Returns:
- TRUE - The Credit Label successfully set
-
creditLabel
public java.lang.String creditLabel()Retrieve the Credit Label- Returns:
- The Credit Label
-
setRecoveryRate
public boolean setRecoveryRate(double dblRecoveryRate)Set the Recovery Rate- Parameters:
dblRecoveryRate- The Recovery Rate- Returns:
- TRUE - The Recovery Rate successfully set
-
recoveryRate
public double recoveryRate() throws java.lang.ExceptionRetrieve the Recovery Rate- Returns:
- The Recovery Rate
- Throws:
java.lang.Exception- Thrown if the Recovery Rate cannot be obtained
-
setCouponPV
public boolean setCouponPV(double dblCouponPV)Set the Coupon PV- Parameters:
dblCouponPV- The Coupon PV- Returns:
- TRUE - The Coupon PV successfully set
-
couponPV
public double couponPV() throws java.lang.ExceptionRetrieve the Coupon PV- Returns:
- The Coupon PV
- Throws:
java.lang.Exception- Thrown if the Coupon PV cannot be obtained
-
setLossPV
public boolean setLossPV(double dblLossPV)Set the Loss PV- Parameters:
dblLossPV- The Loss PV- Returns:
- TRUE - The Loss PV successfully set
-
lossPV
public double lossPV() throws java.lang.ExceptionRetrieve the Loss PV- Returns:
- The Loss PV
- Throws:
java.lang.Exception- Thrown if the Loss PV cannot be obtained
-