Package org.drip.product.params
Class LastTradingDateSetting
java.lang.Object
org.drip.product.params.LastTradingDateSetting
public class LastTradingDateSetting
extends java.lang.Object
LastTradingDateSetting contains the Last Trading Date Generation Scheme for the given Option.
- 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 static intMID_CURVE_OPTIONGeneric Mid-Curve Optionstatic intMID_CURVE_OPTION_QUARTERLYQuarterly Mid-Curve Optionstatic intMID_CURVE_OPTION_SERIALSerial Mid-Curve Option -
Constructor Summary
Constructors Constructor Description LastTradingDateSetting(int iMidCurveOptionType, java.lang.String strLastTradeExerciseLag, int iLastTradingDate)LastTradingDateSetting Constructor -
Method Summary
Modifier and Type Method Description java.lang.StringlastTradeExerciseLag()Retrieve the Lag between the Last Trading and Exercise DatedoublelastTradingDate()Retrieve the Last Trading DateintlastTradingDate(int iUnderlyingLastTradingDate, java.lang.String strCalendar)Compute the Last Trading Datestatic java.lang.StringMidCurveOptionString(int iMidCurveOptionType)Retrieve the String Version of the Mid Curve Option SettingintmidCurveOptionType()Retrieve the Mid-Curve Option Typejava.lang.StringtoString()Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
MID_CURVE_OPTION_QUARTERLY
public static final int MID_CURVE_OPTION_QUARTERLYQuarterly Mid-Curve Option- See Also:
- Constant Field Values
-
MID_CURVE_OPTION_SERIAL
public static final int MID_CURVE_OPTION_SERIALSerial Mid-Curve Option- See Also:
- Constant Field Values
-
MID_CURVE_OPTION
public static final int MID_CURVE_OPTIONGeneric Mid-Curve Option- See Also:
- Constant Field Values
-
-
Constructor Details
-
LastTradingDateSetting
public LastTradingDateSetting(int iMidCurveOptionType, java.lang.String strLastTradeExerciseLag, int iLastTradingDate) throws java.lang.ExceptionLastTradingDateSetting Constructor- Parameters:
iMidCurveOptionType- Mid Curve Option TypestrLastTradeExerciseLag- Lag between the Exercise Date and the Last Option Trading DateiLastTradingDate- The Last Trading Date- Throws:
java.lang.Exception- Thrown if the Inputs are invalid
-
-
Method Details
-
MidCurveOptionString
public static final java.lang.String MidCurveOptionString(int iMidCurveOptionType)Retrieve the String Version of the Mid Curve Option Setting- Parameters:
iMidCurveOptionType- The Mid Curve Option Type- Returns:
- String Version of the Mid Curve Option Setting
-
midCurveOptionType
public int midCurveOptionType()Retrieve the Mid-Curve Option Type- Returns:
- The Mid-Curve Option Type
-
lastTradeExerciseLag
public java.lang.String lastTradeExerciseLag()Retrieve the Lag between the Last Trading and Exercise Date- Returns:
- The Lag between the Last Trading and Exercise Date
-
lastTradingDate
public double lastTradingDate()Retrieve the Last Trading Date- Returns:
- The Last Trading Date
-
lastTradingDate
public int lastTradingDate(int iUnderlyingLastTradingDate, java.lang.String strCalendar)Compute the Last Trading Date- Parameters:
iUnderlyingLastTradingDate- The Last Trading Date for the UnderlyingstrCalendar- The Calendar- Returns:
- The Last Trading Date
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-