public class ScheduleDescriptor extends Object
Constructor and Description |
---|
ScheduleDescriptor(List<Period> periods,
DayCountConvention daycountConvention)
Construct a schedule descriptor via a list of periods and daycount convention.
|
ScheduleDescriptor(LocalDate startDate,
LocalDate maturityDate,
ScheduleGenerator.Frequency frequency,
ScheduleGenerator.DaycountConvention daycountConvention,
ScheduleGenerator.ShortPeriodConvention shortPeriodConvention,
BusinessdayCalendar.DateRollConvention dateRollConvention,
AbstractBusinessdayCalendar abstractBusinessdayCalendar,
int fixingOffsetDays,
int paymentOffsetDays)
Construct a schedule descriptor via a set of parameters for a factory.
|
ScheduleDescriptor(LocalDate startDate,
LocalDate maturityDate,
ScheduleGenerator.Frequency frequency,
ScheduleGenerator.DaycountConvention daycountConvention,
ScheduleGenerator.ShortPeriodConvention shortPeriodConvention,
BusinessdayCalendar.DateRollConvention dateRollConvention,
BusinessdayCalendar businessdayCalendar,
int fixingOffsetDays,
int paymentOffsetDays,
boolean isUseEndOfMonth)
Construct a schedule descriptor via a set of parameters for a factory.
|
ScheduleDescriptor(Schedule schedule)
Extract a schedule descriptor from a schedule.
|
Modifier and Type | Method and Description |
---|---|
int |
getNumberOfPeriods()
The number of periods any schedule from this descriptor will have.
|
List<Period> |
getPeriods()
The periods of a schedule generated from this descriptor.
|
Schedule |
getSchedule(LocalDate referenceDate)
Generate a schedule relative to the given reference date.
|
public ScheduleDescriptor(List<Period> periods, DayCountConvention daycountConvention)
periods
- A list of Period
objects.daycountConvention
- The common daycount convention.public ScheduleDescriptor(Schedule schedule)
schedule
- The schedule.public ScheduleDescriptor(LocalDate startDate, LocalDate maturityDate, ScheduleGenerator.Frequency frequency, ScheduleGenerator.DaycountConvention daycountConvention, ScheduleGenerator.ShortPeriodConvention shortPeriodConvention, BusinessdayCalendar.DateRollConvention dateRollConvention, BusinessdayCalendar businessdayCalendar, int fixingOffsetDays, int paymentOffsetDays, boolean isUseEndOfMonth)
startDate
- The start date of the first period (unadjusted - adjustments take place during schedule generation).maturityDate
- The end date of the last period (unadjusted - adjustments take place during schedule generation).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 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 ScheduleDescriptor(LocalDate startDate, LocalDate maturityDate, ScheduleGenerator.Frequency frequency, ScheduleGenerator.DaycountConvention daycountConvention, ScheduleGenerator.ShortPeriodConvention shortPeriodConvention, BusinessdayCalendar.DateRollConvention dateRollConvention, AbstractBusinessdayCalendar abstractBusinessdayCalendar, int fixingOffsetDays, int paymentOffsetDays)
startDate
- The start date of the first period (unadjusted - adjustments take place during schedule generation).maturityDate
- The end date of the last period (unadjusted - adjustments take place during schedule generation).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.abstractBusinessdayCalendar
- 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.public Schedule getSchedule(LocalDate referenceDate)
referenceDate
- The desired reference date.public int getNumberOfPeriods()
Copyright © 2019. All rights reserved.