Package org.drip.analytics.eventday
Class Variable
java.lang.Object
org.drip.analytics.eventday.Base
org.drip.analytics.eventday.Variable
public class Variable extends Base
Variable class contains the rule characterizing the variable holiday’s month, day in week, week in
month, and the weekend days. Specific holidays in the given year are generated using these rules.
- Module = Product Core Module
- Library = Fixed Income Analytics
- Project = Date, Cash Flow, and Cash Flow Period Measure Generation Utilities
- Package = Fixed, Variable, and Custom Holiday Creation
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description int
dateInYear(int iYear, boolean bAdjustForWeekend)
Generate the full date specific to the input yearMethods inherited from class org.drip.analytics.eventday.Base
description, rollHoliday
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Variable
public Variable(int iWeekInMonth, int iWeekDay, int iMonth, boolean bFromFront, Weekend wkend, java.lang.String strDescription)Construct the object from the week, day, month, from front/back, week end, and description- Parameters:
iWeekInMonth
- Week of the MonthiWeekDay
- Day of the WeekiMonth
- MonthbFromFront
- From Front (true), Back (false)wkend
- WeekendstrDescription
- Description
-
-
Method Details
-
dateInYear
public int dateInYear(int iYear, boolean bAdjustForWeekend)Description copied from class:Base
Generate the full date specific to the input year- Specified by:
dateInYear
in classBase
- Parameters:
iYear
- Input YearbAdjustForWeekend
- Whether adjustment is desired- Returns:
- The full date
-