Class OvernightAveragedRateComputation
- java.lang.Object
- 
- com.opengamma.strata.product.rate.OvernightAveragedRateComputation
 
- 
- All Implemented Interfaces:
- OvernightRateComputation,- RateComputation,- Serializable,- org.joda.beans.Bean,- org.joda.beans.ImmutableBean
 
 public final class OvernightAveragedRateComputation extends Object implements OvernightRateComputation, org.joda.beans.ImmutableBean, Serializable Defines the computation of a rate from a single Overnight index that is averaged daily.An interest rate determined directly from an Overnight index by averaging the value of each day's rate over the period. For example, a rate determined averaging values from 'USD-FED-FUND'. - See Also:
- Serialized Form
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classOvernightAveragedRateComputation.BuilderThe bean-builder forOvernightAveragedRateComputation.static classOvernightAveragedRateComputation.MetaThe meta-bean forOvernightAveragedRateComputation.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OvernightAveragedRateComputation.Builderbuilder()Returns a builder used to create an instance of the bean.booleanequals(Object obj)LocalDategetEndDate()Gets the fixing date associated with the end date of the accrual period.HolidayCalendargetFixingCalendar()Gets the resolved calendar that the index uses.OvernightIndexgetIndex()Gets the Overnight index.intgetRateCutOffDays()Gets the number of business days before the end of the period that the rate is cut off.LocalDategetStartDate()Gets the fixing date associated with the start date of the accrual period.inthashCode()static OvernightAveragedRateComputation.Metameta()The meta-bean forOvernightAveragedRateComputation.OvernightAveragedRateComputation.MetametaBean()static OvernightAveragedRateComputationof(OvernightIndex index, LocalDate startDate, LocalDate endDate, int rateCutOffDays, ReferenceData refData)Creates an instance from an index, accrual period dates and rate cut-off.static OvernightAveragedRateComputationof(OvernightIndex index, LocalDate startDate, LocalDate endDate, ReferenceData refData)Creates an instance from an index and accrual period datesOvernightAveragedRateComputation.BuildertoBuilder()Returns a builder that allows this bean to be mutated.StringtoString()- 
Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface com.opengamma.strata.product.rate.OvernightRateComputationcalculateEffectiveFromFixing, calculateFixingFromEffective, calculateMaturityFromEffective, calculateMaturityFromFixing, calculatePublicationFromFixing, collectIndices, observeOn
 
- 
 
- 
- 
- 
Method Detail- 
ofpublic static OvernightAveragedRateComputation of(OvernightIndex index, LocalDate startDate, LocalDate endDate, ReferenceData refData) Creates an instance from an index and accrual period datesThe dates represent the accrual period. No rate cut-off applies. - Parameters:
- index- the index
- startDate- the first date of the accrual period
- endDate- the last date of the accrual period
- refData- the reference data to use when resolving holiday calendars
- Returns:
- the rate computation
 
 - 
ofpublic static OvernightAveragedRateComputation of(OvernightIndex index, LocalDate startDate, LocalDate endDate, int rateCutOffDays, ReferenceData refData) Creates an instance from an index, accrual period dates and rate cut-off.Rate cut-off applies if the cut-off is 2 or greater. A value of 0 or 1 should be used if no cut-off applies. - Parameters:
- index- the index
- startDate- the first date of the accrual period
- endDate- the last date of the accrual period
- rateCutOffDays- the rate cut-off days offset, not negative or zero
- refData- the reference data to use when resolving holiday calendars
- Returns:
- the rate computation
 
 - 
metapublic static OvernightAveragedRateComputation.Meta meta() The meta-bean forOvernightAveragedRateComputation.- Returns:
- the meta-bean, not null
 
 - 
builderpublic static OvernightAveragedRateComputation.Builder builder() Returns a builder used to create an instance of the bean.- Returns:
- the builder, not null
 
 - 
metaBeanpublic OvernightAveragedRateComputation.Meta metaBean() - Specified by:
- metaBeanin interface- org.joda.beans.Bean
 
 - 
getIndexpublic OvernightIndex getIndex() Gets the Overnight index.The rate to be paid is based on this index. It will be a well known market index such as 'GBP-SONIA'. - Specified by:
- getIndexin interface- OvernightRateComputation
- Returns:
- the value of the property, not null
 
 - 
getFixingCalendarpublic HolidayCalendar getFixingCalendar() Gets the resolved calendar that the index uses.- Specified by:
- getFixingCalendarin interface- OvernightRateComputation
- Returns:
- the value of the property, not null
 
 - 
getStartDatepublic LocalDate getStartDate() Gets the fixing date associated with the start date of the accrual period.This is also the first fixing date. The overnight rate is observed from this date onwards. In general, the fixing dates and accrual dates are the same for an overnight index. However, in the case of a Tomorrow/Next index, the fixing period is one business day before the accrual period. - Specified by:
- getStartDatein interface- OvernightRateComputation
- Returns:
- the value of the property, not null
 
 - 
getEndDatepublic LocalDate getEndDate() Gets the fixing date associated with the end date of the accrual period.The overnight rate is accrued until the maturity date associated with this date. In general, the fixing dates and accrual dates are the same for an overnight index. However, in the case of a Tomorrow/Next index, the fixing period is one business day before the accrual period. - Specified by:
- getEndDatein interface- OvernightRateComputation
- Returns:
- the value of the property, not null
 
 - 
getRateCutOffDayspublic int getRateCutOffDays() Gets the number of business days before the end of the period that the rate is cut off.When a rate cut-off applies, the final daily rate is determined this number of days before the end of the period, with any subsequent days having the same rate. The amount must be zero or positive. A value of zero or one will have no effect on the standard calculation. The fixing holiday calendar of the index is used to determine business days. For example, a value of 3means that the rate observed on(periodEndDate - 3 business days)is also to be used on(periodEndDate - 2 business days)and(periodEndDate - 1 business day).If there are multiple accrual periods in the payment period, then this should typically only be non-zero in the last accrual period. - Returns:
- the value of the property
 
 - 
toBuilderpublic OvernightAveragedRateComputation.Builder toBuilder() Returns a builder that allows this bean to be mutated.- Returns:
- the mutable builder, not null
 
 
- 
 
-