Documentation of 'net.finmath.time.ScheduleGenerator' Java class
ScheduleGenerator
net.finmath.time

Class ScheduleGenerator



  • public class ScheduleGenerator
    extends java.lang.Object
    Generates a schedule based on some meta data (frequency, maturity, date roll convention, etc.). A schedule is just a collection of Periods.
    • Method Detail

      • createScheduleFromConventions

        public static ScheduleInterface createScheduleFromConventions(java.util.Calendar referenceDate,
                                                                      java.util.Calendar startDate,
                                                                      java.util.Calendar maturity,
                                                                      ScheduleGenerator.Frequency frequency,
                                                                      ScheduleGenerator.DaycountConvention daycountConvention,
                                                                      ScheduleGenerator.ShortPeriodConvention shortPeriodConvention,
                                                                      BusinessdayCalendarInterface.DateRollConvention dateRollConvention,
                                                                      BusinessdayCalendarInterface businessdayCalendar,
                                                                      int fixingOffsetDays,
                                                                      int paymentOffsetDays)
        Schedule generation from meta data. Generates a schedule based on some meta data.
        • The schedule generation considers short stub periods at beginning or at the end.
        • Date rolling is performed using the provided businessdayCalendar.
        The reference date is used internally to represent all dates as doubles, i.e. t = 0 corresponds to the reference date.
        Parameters:
        referenceDate - The date which is used in the schedule to internally convert dates to doubles, i.e., the date where t=0.
        startDate - The start date of the first period.
        maturity - The end date of the first period.
        frequency - The frequency.
        daycountConvention - The daycount convention.
        shortPeriodConvention - If short period exists, have it first or last.
        dateRollConvention - Adjustment to be applied to the all dates.
        businessdayCalendar - Businessday calendar (holiday calendar) to be used for date roll adjustment.
        fixingOffsetDays - Number of days to be added to period start to get the fixing date.
        paymentOffsetDays - Number of days to be added to period end to get the payment date.
        Returns:
        The corresponding schedule
      • createScheduleFromConventions

        public static ScheduleInterface createScheduleFromConventions(java.util.Date referenceDate,
                                                                      java.util.Date startDate,
                                                                      java.util.Date maturityDate,
                                                                      java.lang.String frequency,
                                                                      java.lang.String daycountConvention,
                                                                      java.lang.String shortPeriodConvention,
                                                                      java.lang.String dateRollConvention,
                                                                      BusinessdayCalendarInterface businessdayCalendar,
                                                                      int fixingOffsetDays,
                                                                      int paymentOffsetDays)
        Schedule generation from meta data. Generates a schedule based on some meta data.
        • The schedule generation considers short stub periods at beginning or at the end.
        • Date rolling is performed using the provided businessdayCalendar.
        The reference date is used internally to represent all dates as doubles.
        Parameters:
        referenceDate - The date which is used in the schedule to internally convert dates to doubles, i.e., the date where t=0.
        startDate - The start date of the first period (this may/should be an unadjusted date).
        maturityDate - The end date of the last period (this may/should be an unadjusted date).
        frequency - The frequency.
        daycountConvention - The daycount convention.
        shortPeriodConvention - If short period exists, have it first or last.
        dateRollConvention - Adjustment to be applied to the all dates.
        businessdayCalendar - Businessday calendar (holiday calendar) to be used for date roll adjustment.
        fixingOffsetDays - Number of days to be added to period start to get the fixing date.
        paymentOffsetDays - Number of days to be added to period end to get the payment date.
        Returns:
        The corresponding schedule
      • createScheduleFromConventions

        public static ScheduleInterface createScheduleFromConventions(java.util.Date referenceDate,
                                                                      java.util.Date tradeDate,
                                                                      int spotOffsetDays,
                                                                      java.lang.String startOffset,
                                                                      java.lang.String maturity,
                                                                      java.lang.String frequency,
                                                                      java.lang.String daycountConvention,
                                                                      java.lang.String shortPeriodConvention,
                                                                      java.lang.String dateRollConvention,
                                                                      BusinessdayCalendarInterface businessdayCalendar,
                                                                      int fixingOffsetDays,
                                                                      int paymentOffsetDays)
        Simple schedule generation. Generates a schedule based on some meta data. The schedule generation considers short periods. Date rolling is ignored.
        Parameters:
        referenceDate - The date which is used in the schedule to internally convert dates to doubles, i.e., the date where t=0.
        tradeDate - Base date for the schedule generation (used to build spot date).
        spotOffsetDays - Number of business days to be added to the trade date to obtain the spot date.
        startOffset - The start date as an offset from the spotDate (build from tradeDate and spotOffsetDays) entered as a code like 1D, 1W, 1M, 2M, 3M, 1Y, etc.
        maturity - The end date of the first period entered as a code like 1D, 1W, 1M, 2M, 3M, 1Y, etc.
        frequency - The frequency.
        daycountConvention - The day count convention.
        shortPeriodConvention - If short period exists, have it first or last.
        dateRollConvention - Adjustment to be applied to the all dates.
        businessdayCalendar - Business day calendar (holiday calendar) to be used for date roll adjustment.
        fixingOffsetDays - Number of business days to be added to period start to get the fixing date.
        paymentOffsetDays - Number of business days to be added to period end to get the payment date.
        Returns:
        The corresponding schedule
      • createScheduleFromConventions

        public static ScheduleInterface createScheduleFromConventions(java.util.Date referenceDate,
                                                                      int spotOffsetDays,
                                                                      java.lang.String startOffset,
                                                                      java.lang.String maturity,
                                                                      java.lang.String frequency,
                                                                      java.lang.String daycountConvention,
                                                                      java.lang.String shortPeriodConvention,
                                                                      java.lang.String dateRollConvention,
                                                                      BusinessdayCalendarInterface businessdayCalendar,
                                                                      int fixingOffsetDays,
                                                                      int paymentOffsetDays)
        Simple schedule generation. Generates a schedule based on some meta data. The schedule generation considers short periods. Date rolling is ignored.
        Parameters:
        referenceDate - The date which is used in the schedule to internally convert dates to doubles, i.e., the date where t=0.
        spotOffsetDays - Number of business days to be added to the reference date to obtain the spot date.
        startOffset - The start date as an offset from the spotDate (build from referenceDate and spotOffsetDays) entered as a code like 1D, 1W, 1M, 2M, 3M, 1Y, etc.
        maturity - The end date of the first period entered as a code like 1D, 1W, 1M, 2M, 3M, 1Y, etc.
        frequency - The frequency.
        daycountConvention - The day count convention.
        shortPeriodConvention - If short period exists, have it first or last.
        dateRollConvention - Adjustment to be applied to the all dates.
        businessdayCalendar - Business day calendar (holiday calendar) to be used for date roll adjustment.
        fixingOffsetDays - Number of business days to be added to period start to get the fixing date.
        paymentOffsetDays - Number of business days to be added to period end to get the payment date.
        Returns:
        The corresponding schedule
      • createScheduleFromConventions

        public static ScheduleInterface createScheduleFromConventions(java.util.Date referenceDate,
                                                                      java.lang.String startOffset,
                                                                      java.lang.String maturity,
                                                                      java.lang.String frequency,
                                                                      java.lang.String daycountConvention,
                                                                      java.lang.String shortPeriodConvention,
                                                                      java.lang.String dateRollConvention,
                                                                      BusinessdayCalendarInterface businessdayCalendar,
                                                                      int fixingOffsetDays,
                                                                      int paymentOffsetDays)
        Simple schedule generation. Generates a schedule based on some meta data. The schedule generation considers short periods. Date rolling is ignored.
        Parameters:
        referenceDate - The date which is used in the schedule to internally convert dates to doubles, i.e., the date where t=0.
        startOffset - The start date as an offset from the referenceDate entered as a code like 1D, 1W, 1M, 2M, 3M, 1Y, etc.
        maturity - The end date of the first period entered as a code like 1D, 1W, 1M, 2M, 3M, 1Y, etc.
        frequency - The frequency.
        daycountConvention - The day count convention.
        shortPeriodConvention - If short period exists, have it first or last.
        dateRollConvention - Adjustment to be applied to the all dates.
        businessdayCalendar - Business day calendar (holiday calendar) to be used for date roll adjustment.
        fixingOffsetDays - Number of business days to be added to period start to get the fixing date.
        paymentOffsetDays - Number of business days to be added to period end to get the payment date.
        Returns:
        The corresponding schedule
      • createScheduleFromConventions

        public static ScheduleInterface createScheduleFromConventions(java.util.Date referenceDate,
                                                                      java.util.Date startDate,
                                                                      java.lang.String frequency,
                                                                      double maturity,
                                                                      java.lang.String daycountConvention,
                                                                      java.lang.String shortPeriodConvention,
                                                                      java.lang.String dateRollConvention,
                                                                      BusinessdayCalendarInterface businessdayCalendar,
                                                                      int fixingOffsetDays,
                                                                      int paymentOffsetDays)
        Generates a schedule based on some meta data. The schedule generation considers short periods.
        Parameters:
        referenceDate - The date which is used in the schedule to internally convert dates to doubles, i.e., the date where t=0.
        startDate - The start date of the first period.
        frequency - The frequency.
        maturity - The end date of the first period.
        daycountConvention - The daycount convention.
        shortPeriodConvention - If short period exists, have it first or last.
        dateRollConvention - Adjustment to be applied to the all dates.
        businessdayCalendar - Businessday calendar (holiday calendar) to be used for date roll adjustment.
        fixingOffsetDays - Number of days to be added to period start to get the fixing date.
        paymentOffsetDays - Number of days to be added to period end to get the payment date.
        Returns:
        The corresponding schedule
      • createScheduleFromConventions

        public static ScheduleInterface createScheduleFromConventions(java.util.Date referenceDate,
                                                                      java.util.Date startDate,
                                                                      java.lang.String frequency,
                                                                      double maturity,
                                                                      java.lang.String daycountConvention,
                                                                      java.lang.String shortPeriodConvention)
        Generates a schedule based on some meta data. The schedule generation considers short periods. Date rolling is ignored.
        Parameters:
        referenceDate - The date which is used in the schedule to internally convert dates to doubles, i.e., the date where t=0.
        startDate - The start date of the first period.
        frequency - The frequency.
        maturity - The end date of the first period.
        daycountConvention - The daycount convention.
        shortPeriodConvention - If short period exists, have it first or last.
        Returns:
        The corresponding schedule

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.