public final class IborAveragedFixing extends Object implements org.joda.beans.ImmutableBean, Serializable
IborAveragedRateComputation.
The interest rate is determined for each reset period, with the weight used to create a weighted average.
| Modifier and Type | Class and Description |
|---|---|
static class |
IborAveragedFixing.Builder
The bean-builder for
IborAveragedFixing. |
static class |
IborAveragedFixing.Meta
The meta-bean for
IborAveragedFixing. |
| Modifier and Type | Method and Description |
|---|---|
static IborAveragedFixing.Builder |
builder()
Returns a builder used to create an instance of the bean.
|
boolean |
equals(Object obj) |
OptionalDouble |
getFixedRate()
Gets the fixed rate for the fixing date, optional.
|
IborIndexObservation |
getObservation()
Gets the Ibor index observation to use to determine a rate for the reset period.
|
double |
getWeight()
Gets the weight to apply to this fixing.
|
int |
hashCode() |
static IborAveragedFixing.Meta |
meta()
The meta-bean for
IborAveragedFixing. |
IborAveragedFixing.Meta |
metaBean() |
static IborAveragedFixing |
of(IborIndexObservation observation)
Creates a
IborAveragedFixing from the fixing date with a weight of 1. |
static IborAveragedFixing |
of(IborIndexObservation observation,
Double fixedRate)
Creates a
IborAveragedFixing from the fixing date with a weight of 1. |
static IborAveragedFixing |
ofDaysInResetPeriod(IborIndexObservation observation,
LocalDate startDate,
LocalDate endDate)
Creates a
IborAveragedFixing from the fixing date, calculating the weight
from the number of days in the reset period. |
static IborAveragedFixing |
ofDaysInResetPeriod(IborIndexObservation observation,
LocalDate startDate,
LocalDate endDate,
Double fixedRate)
Creates a
IborAveragedFixing from the fixing date, calculating the weight
from the number of days in the reset period. |
IborAveragedFixing.Builder |
toBuilder()
Returns a builder that allows this bean to be mutated.
|
String |
toString() |
public static IborAveragedFixing of(IborIndexObservation observation)
IborAveragedFixing from the fixing date with a weight of 1.observation - the Ibor observationpublic static IborAveragedFixing of(IborIndexObservation observation, Double fixedRate)
IborAveragedFixing from the fixing date with a weight of 1.observation - the Ibor observationfixedRate - the fixed rate for the fixing date, optional, may be nullpublic static IborAveragedFixing ofDaysInResetPeriod(IborIndexObservation observation, LocalDate startDate, LocalDate endDate)
IborAveragedFixing from the fixing date, calculating the weight
from the number of days in the reset period.
This implements the standard approach to average weights, which is to set each weight to the actual number of days between the start and end of the reset period.
observation - the Ibor observationstartDate - the start date of the reset periodendDate - the end date of the reset periodpublic static IborAveragedFixing ofDaysInResetPeriod(IborIndexObservation observation, LocalDate startDate, LocalDate endDate, Double fixedRate)
IborAveragedFixing from the fixing date, calculating the weight
from the number of days in the reset period.
This implements the standard approach to average weights, which is to set each weight to the actual number of days between the start and end of the reset period.
observation - the Ibor observationstartDate - the start date of the reset periodendDate - the end date of the reset periodfixedRate - the fixed rate for the fixing date, optional, may be nullpublic static IborAveragedFixing.Meta meta()
IborAveragedFixing.public static IborAveragedFixing.Builder builder()
public IborAveragedFixing.Meta metaBean()
metaBean in interface org.joda.beans.Beanpublic IborIndexObservation getObservation()
public OptionalDouble getFixedRate()
In certain circumstances two counterparties agree the rate of a fixing when the contract starts. It is used in place of an observed fixing. Other calculation elements, such as gearing or spread, still apply.
If the value not present, which is the normal case, then the rate is observed via the normal fixing process.
public double getWeight()
If the averaging is unweighted, then all weights must be one.
public IborAveragedFixing.Builder toBuilder()
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.