public final class ResetSchedule extends Object implements org.joda.beans.ImmutableBean, Serializable
This defines the data necessary to create a schedule of reset periods. Most accrual periods only contain a single reset period. This schedule is used when there is more than one reset period in each accrual period, or where the rules around the reset period are unusual.
The rate will be observed once for each reset period. If an accrual period contains more than one reset period then an averaging method will be used to combine the floating rates.
This class defines reset periods using a periodic frequency. The frequency must match or be smaller than the accrual periodic frequency. The reset schedule is calculated forwards, potentially with a short stub at the end.
| Modifier and Type | Class and Description |
|---|---|
static class |
ResetSchedule.Builder
The bean-builder for
ResetSchedule. |
static class |
ResetSchedule.Meta
The meta-bean for
ResetSchedule. |
| Modifier and Type | Method and Description |
|---|---|
static ResetSchedule.Builder |
builder()
Returns a builder used to create an instance of the bean.
|
boolean |
equals(Object obj) |
BusinessDayAdjustment |
getBusinessDayAdjustment()
Gets the business day adjustment to apply to each reset date.
|
Frequency |
getResetFrequency()
Gets the periodic frequency of reset dates.
|
IborRateResetMethod |
getResetMethod()
Gets the rate reset method, defaulted to 'Unweighted'.
|
int |
hashCode() |
static ResetSchedule.Meta |
meta()
The meta-bean for
ResetSchedule. |
ResetSchedule.Meta |
metaBean() |
ResetSchedule.Builder |
toBuilder()
Returns a builder that allows this bean to be mutated.
|
String |
toString() |
public static ResetSchedule.Meta meta()
ResetSchedule.public static ResetSchedule.Builder builder()
public ResetSchedule.Meta metaBean()
metaBean in interface org.joda.beans.Beanpublic Frequency getResetFrequency()
Reset dates will be calculated within each accrual period based on unadjusted dates. The frequency must be the same as, or smaller than, the accrual periodic frequency. When calculating the reset dates, the roll convention of the accrual periods will be used. Once the unadjusted date calculation is complete, the business day adjustment specified here will be used.
Averaging applies if the reset frequency does not equal the accrual frequency.
public BusinessDayAdjustment getBusinessDayAdjustment()
This adjustment is applied to each reset date to ensure it is a valid business day.
public IborRateResetMethod getResetMethod()
This is used when more than one fixing contributes to the accrual period.
Averaging may be weighted by the number of days that the fixing is applicable for. The number of days is based on the reset period, not the period between two fixing dates.
Defined by the 2006 ISDA definitions article 6.2a.
public ResetSchedule.Builder toBuilder()
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.