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.

Author:
Lakshmi Krishnamurthy
  • Constructor Summary

    Constructors
    Constructor Description
    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
  • Method Summary

    Modifier and Type Method Description
    int dateInYear​(int iYear, boolean bAdjustForWeekend)
    Generate the full date specific to the input year

    Methods 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 Month
      iWeekDay - Day of the Week
      iMonth - Month
      bFromFront - From Front (true), Back (false)
      wkend - Weekend
      strDescription - 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 class Base
      Parameters:
      iYear - Input Year
      bAdjustForWeekend - Whether adjustment is desired
      Returns:
      The full date