public final class InflationEndMonthRateComputation extends Object implements RateComputation, org.joda.beans.ImmutableBean, Serializable
A typical application of this rate computation is payments of a capital indexed bond, where the reference start month is start month of the bond rather than start month of the payment period.
A price index is typically published monthly and has a delay before publication. The rate observed by this instance will be based on the start index value and the observation relative to the end month.
| Modifier and Type | Class and Description |
|---|---|
static class |
InflationEndMonthRateComputation.Meta
The meta-bean for
InflationEndMonthRateComputation. |
| Modifier and Type | Method and Description |
|---|---|
void |
collectIndices(ImmutableSet.Builder<Index> builder)
Collects all the indices referred to by this computation.
|
boolean |
equals(Object obj) |
PriceIndexObservation |
getEndObservation()
Gets the observation at the end.
|
PriceIndex |
getIndex()
Gets the Price index.
|
double |
getStartIndexValue()
Gets the start index value.
|
int |
hashCode() |
static InflationEndMonthRateComputation.Meta |
meta()
The meta-bean for
InflationEndMonthRateComputation. |
InflationEndMonthRateComputation.Meta |
metaBean() |
static InflationEndMonthRateComputation |
of(PriceIndex index,
double startIndexValue,
YearMonth referenceEndMonth)
Creates an instance from an index, start index value and reference end month.
|
String |
toString() |
public static InflationEndMonthRateComputation of(PriceIndex index, double startIndexValue, YearMonth referenceEndMonth)
index - the indexstartIndexValue - the start index valuereferenceEndMonth - the reference end monthpublic PriceIndex getIndex()
public void collectIndices(ImmutableSet.Builder<Index> builder)
RateComputationA computation will typically refer to one index, such as 'GBP-LIBOR-3M'. Each index that is referred to must be added to the specified builder.
collectIndices in interface RateComputationbuilder - the builder to usepublic static InflationEndMonthRateComputation.Meta meta()
InflationEndMonthRateComputation.public InflationEndMonthRateComputation.Meta metaBean()
metaBean in interface org.joda.beans.Beanpublic double getStartIndexValue()
The published index value of the start month.
public PriceIndexObservation getEndObservation()
The inflation rate is the ratio between the start index value and end observation. The end month is typically three months before the end of the period.
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.