public class ScheduleMetaData extends Object implements Serializable
Constructor and Description |
---|
ScheduleMetaData(LocalDate referenceDate,
ScheduleGenerator.Frequency frequency,
ScheduleGenerator.DaycountConvention daycountConvention,
ScheduleGenerator.ShortPeriodConvention shortPeriodConvention,
BusinessdayCalendarInterface.DateRollConvention dateRollConvention,
BusinessdayCalendarInterface businessdayCalendar,
int fixingOffsetDays,
int paymentOffsetDays,
boolean isUseEndOfMonth)
Construct the ScheduleMetaData.
|
Modifier and Type | Method and Description |
---|---|
ScheduleInterface |
generateSchedule(int maturity,
int termination)
Generate a schedule with start / end date determined by an offset in months from the reference date.
|
ScheduleInterface |
generateSchedule(int maturity,
int termination,
net.finmath.time.ScheduleMetaData.OffsetUnit unit)
Generate a schedule with start / end date determined by an offset from the reference date.
|
ScheduleInterface |
generateSchedule(LocalDate startDate,
LocalDate endDate)
Generate a schedule for the given start and end date.
|
ScheduleInterface |
generateScheduleWithFrequency(int maturity,
int termination,
ScheduleGenerator.Frequency frequency)
Generate a schedule with a given frequency and start / end date determined by an offset in months from the reference date.
|
ScheduleInterface |
generateScheduleWithFrequency(int maturity,
int termination,
net.finmath.time.ScheduleMetaData.OffsetUnit unit,
ScheduleGenerator.Frequency frequency)
Generate a schedule with a given frequency and start / end date determined by an offset from the reference date.
|
ScheduleInterface |
generateScheduleWithFrequency(LocalDate startDate,
LocalDate endDate,
ScheduleGenerator.Frequency frequency)
Generate a schedule for the given start / end date and frequency.
|
ScheduleInterface |
generateSinglePeriod(LocalDate startDate,
LocalDate endDate)
Generate a schedule for the given start and end date.
|
static String |
getOffsetCodeFromCurveName(String curveName)
Determines the offset code of a forward contract from the name of a forward curve.
|
static String |
getOffsetCodeFromSchedule(ScheduleInterface schedule)
Determines the offset code of a forward contract from a schedule.
|
public final LocalDate referenceDate
public final ScheduleGenerator.Frequency frequency
public final ScheduleGenerator.DaycountConvention daycountConvention
public final ScheduleGenerator.ShortPeriodConvention shortPeriodConvention
public final BusinessdayCalendarInterface.DateRollConvention dateRollConvention
public final BusinessdayCalendarInterface businessdayCalendar
public final int fixingOffsetDays
public final int paymentOffsetDays
public final boolean isUseEndOfMonth
public ScheduleMetaData(LocalDate referenceDate, ScheduleGenerator.Frequency frequency, ScheduleGenerator.DaycountConvention daycountConvention, ScheduleGenerator.ShortPeriodConvention shortPeriodConvention, BusinessdayCalendarInterface.DateRollConvention dateRollConvention, BusinessdayCalendarInterface businessdayCalendar, int fixingOffsetDays, int paymentOffsetDays, boolean isUseEndOfMonth)
referenceDate
- frequency
- The default frequency.daycountConvention
- shortPeriodConvention
- dateRollConvention
- businessdayCalendar
- fixingOffsetDays
- paymentOffsetDays
- isUseEndOfMonth
- public static String getOffsetCodeFromSchedule(ScheduleInterface schedule)
schedule
- public static String getOffsetCodeFromCurveName(String curveName)
curveName
- public ScheduleInterface generateSchedule(LocalDate startDate, LocalDate endDate)
startDate
- endDate
- public ScheduleInterface generateSinglePeriod(LocalDate startDate, LocalDate endDate)
startDate
- endDate
- public ScheduleInterface generateScheduleWithFrequency(LocalDate startDate, LocalDate endDate, ScheduleGenerator.Frequency frequency)
startDate
- endDate
- frequency
- public ScheduleInterface generateSchedule(int maturity, int termination)
maturity
- Offset of the start date to the reference date in monthstermination
- Offset of the end date to the reference date in monthspublic ScheduleInterface generateSchedule(int maturity, int termination, net.finmath.time.ScheduleMetaData.OffsetUnit unit)
maturity
- Offset of the start date to the reference datetermination
- Offset of the end date to the reference dateunit
- The convention to use for the offsetpublic ScheduleInterface generateScheduleWithFrequency(int maturity, int termination, ScheduleGenerator.Frequency frequency)
maturity
- Offset of the start date to the reference date in monthstermination
- Offset of the end date to the reference date in monthsfrequency
- The frequency of the schedulepublic ScheduleInterface generateScheduleWithFrequency(int maturity, int termination, net.finmath.time.ScheduleMetaData.OffsetUnit unit, ScheduleGenerator.Frequency frequency)
maturity
- Offset of the start date to the reference date in monthstermination
- Offset of the end date to the reference date in monthsunit
- The convention to use for the offsetfrequency
- The frequency of the scheduleCopyright © 2018. All rights reserved.