public class ScheduleMetaData extends Object implements Serializable
Constructor and Description |
---|
ScheduleMetaData(ScheduleGenerator.Frequency frequency,
ScheduleGenerator.DaycountConvention daycountConvention,
ScheduleGenerator.ShortPeriodConvention shortPeriodConvention,
BusinessdayCalendar.DateRollConvention dateRollConvention,
BusinessdayCalendar businessdayCalendar,
int fixingOffsetDays,
int paymentOffsetDays,
boolean isUseEndOfMonth)
Construct the ScheduleMetaData.
|
Modifier and Type | Method and Description |
---|---|
Schedule |
generateSchedule(LocalDate referenceDate,
int maturity,
int termination)
Generate a schedule with start / end date determined by an offset in months from the reference date.
|
Schedule |
generateSchedule(LocalDate referenceDate,
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.
|
Schedule |
generateSchedule(LocalDate referenceDate,
LocalDate startDate,
LocalDate endDate)
Generate a schedule for the given start and end date.
|
ScheduleDescriptor |
generateScheduleDescriptor(LocalDate startDate,
LocalDate endDate)
Generate a schedule descriptor for the given start and end date.
|
BusinessdayCalendar |
getBusinessdayCalendar() |
BusinessdayCalendar.DateRollConvention |
getDateRollConvention() |
ScheduleGenerator.DaycountConvention |
getDaycountConvention() |
int |
getFixingOffsetDays() |
ScheduleGenerator.Frequency |
getFrequency() |
static String |
getOffsetCodeFromCurveName(String curveName)
Determines the offset code of a forward contract from the name of a forward curve.
|
static String |
getOffsetCodeFromSchedule(Schedule schedule)
Determines the offset code of a forward contract from a schedule.
|
int |
getPaymentOffsetDays() |
ScheduleGenerator.ShortPeriodConvention |
getShortPeriodConvention() |
boolean |
isUseEndOfMonth() |
public ScheduleMetaData(ScheduleGenerator.Frequency frequency, ScheduleGenerator.DaycountConvention daycountConvention, ScheduleGenerator.ShortPeriodConvention shortPeriodConvention, BusinessdayCalendar.DateRollConvention dateRollConvention, BusinessdayCalendar businessdayCalendar, int fixingOffsetDays, int paymentOffsetDays, boolean isUseEndOfMonth)
frequency
- The default 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 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.isUseEndOfMonth
- If ShortPeriodConvention is LAST and startDate is an end of month date, all period will be adjusted to EOM. If ShortPeriodConvention is FIRST and maturityDate is an end of month date, all period will be adjusted to EOM.public static String getOffsetCodeFromSchedule(Schedule schedule)
schedule
- The schedule.public static String getOffsetCodeFromCurveName(String curveName)
curveName
- The name of the curve.public ScheduleDescriptor generateScheduleDescriptor(LocalDate startDate, LocalDate endDate)
startDate
- The start date.endDate
- The end date.public Schedule generateSchedule(LocalDate referenceDate, LocalDate startDate, LocalDate endDate)
referenceDate
- The reference date (corresponds to \( t = 0 \).startDate
- The start date.endDate
- The end date.public Schedule generateSchedule(LocalDate referenceDate, int maturity, int termination)
referenceDate
- The reference date (corresponds to \( t = 0 \).maturity
- Offset of the start date to the reference date in monthstermination
- Offset of the end date to the reference date in monthspublic Schedule generateSchedule(LocalDate referenceDate, int maturity, int termination, net.finmath.time.ScheduleMetaData.OffsetUnit unit)
referenceDate
- The reference date (corresponds to \( t = 0 \).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 ScheduleGenerator.Frequency getFrequency()
public ScheduleGenerator.DaycountConvention getDaycountConvention()
public ScheduleGenerator.ShortPeriodConvention getShortPeriodConvention()
public BusinessdayCalendar.DateRollConvention getDateRollConvention()
public BusinessdayCalendar getBusinessdayCalendar()
public int getFixingOffsetDays()
public int getPaymentOffsetDays()
public boolean isUseEndOfMonth()
Copyright © 2019. All rights reserved.