public class DiscountingFxResetNotionalExchangePricer extends Object implements SwapPaymentEventPricer<FxResetNotionalExchange>
The FX reset notional exchange is priced by discounting the value of the exchange. The value of the exchange is calculated by performing an FX conversion on the amount.
| Modifier and Type | Field and Description |
|---|---|
static DiscountingFxResetNotionalExchangePricer |
DEFAULT
Default implementation.
|
| Constructor and Description |
|---|
DiscountingFxResetNotionalExchangePricer()
Creates an instance.
|
| Modifier and Type | Method and Description |
|---|---|
MultiCurrencyAmount |
currencyExposure(FxResetNotionalExchange event,
RatesProvider provider)
Calculates the currency exposure of a single payment event.
|
double |
currentCash(FxResetNotionalExchange event,
RatesProvider provider)
Calculates the current cash of a single payment event.
|
void |
explainPresentValue(FxResetNotionalExchange event,
RatesProvider provider,
ExplainMapBuilder builder)
Explains the present value of a single payment event.
|
double |
forecastValue(FxResetNotionalExchange event,
RatesProvider provider)
Calculates the forecast value of a single payment event.
|
PointSensitivityBuilder |
forecastValueSensitivity(FxResetNotionalExchange event,
RatesProvider provider)
Calculates the forecast value sensitivity of a single payment event.
|
double |
presentValue(FxResetNotionalExchange event,
RatesProvider provider)
Calculates the present value of a single payment event.
|
PointSensitivityBuilder |
presentValueSensitivity(FxResetNotionalExchange event,
RatesProvider provider)
Calculates the present value sensitivity of a single payment event.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitstandardpublic static final DiscountingFxResetNotionalExchangePricer DEFAULT
public DiscountingFxResetNotionalExchangePricer()
public double presentValue(FxResetNotionalExchange event, RatesProvider provider)
SwapPaymentEventPricerThe amount is expressed in the currency of the event. This returns the value of the event with discounting.
The payment date of the event should not be in the past. The result of this method for payment dates in the past is undefined.
presentValue in interface SwapPaymentEventPricer<FxResetNotionalExchange>event - the eventprovider - the rates providerpublic PointSensitivityBuilder presentValueSensitivity(FxResetNotionalExchange event, RatesProvider provider)
SwapPaymentEventPricerThe present value sensitivity of the event is the sensitivity of the present value to the underlying curves.
presentValueSensitivity in interface SwapPaymentEventPricer<FxResetNotionalExchange>event - the eventprovider - the rates providerpublic double forecastValue(FxResetNotionalExchange event, RatesProvider provider)
SwapPaymentEventPricerThe amount is expressed in the currency of the event. This returns the value of the event without discounting.
The payment date of the event should not be in the past. The result of this method for payment dates in the past is undefined.
forecastValue in interface SwapPaymentEventPricer<FxResetNotionalExchange>event - the eventprovider - the rates providerpublic PointSensitivityBuilder forecastValueSensitivity(FxResetNotionalExchange event, RatesProvider provider)
SwapPaymentEventPricerThe forecast value sensitivity of the event is the sensitivity of the forecast value to the underlying curves.
forecastValueSensitivity in interface SwapPaymentEventPricer<FxResetNotionalExchange>event - the eventprovider - the rates providerpublic void explainPresentValue(FxResetNotionalExchange event, RatesProvider provider, ExplainMapBuilder builder)
SwapPaymentEventPricer
This adds information to the ExplainMapBuilder to aid understanding of the calculation.
explainPresentValue in interface SwapPaymentEventPricer<FxResetNotionalExchange>event - the eventprovider - the rates providerbuilder - the builder to populatepublic MultiCurrencyAmount currencyExposure(FxResetNotionalExchange event, RatesProvider provider)
SwapPaymentEventPricercurrencyExposure in interface SwapPaymentEventPricer<FxResetNotionalExchange>event - the eventprovider - the rates providerpublic double currentCash(FxResetNotionalExchange event, RatesProvider provider)
SwapPaymentEventPricercurrentCash in interface SwapPaymentEventPricer<FxResetNotionalExchange>event - the eventprovider - the rates providerCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.