public class DiscountingNotionalExchangePricer extends Object implements SwapPaymentEventPricer<NotionalExchange>
The notional exchange is priced by discounting the value of the exchange.
| Modifier and Type | Field and Description |
|---|---|
static DiscountingNotionalExchangePricer |
DEFAULT
Default implementation.
|
| Constructor and Description |
|---|
DiscountingNotionalExchangePricer(DiscountingPaymentPricer paymentPricer)
Creates an instance.
|
| Modifier and Type | Method and Description |
|---|---|
MultiCurrencyAmount |
currencyExposure(NotionalExchange event,
RatesProvider provider)
Calculates the currency exposure of a single payment event.
|
double |
currentCash(NotionalExchange event,
RatesProvider provider)
Calculates the current cash of a single payment event.
|
void |
explainPresentValue(NotionalExchange event,
RatesProvider provider,
ExplainMapBuilder builder)
Explains the present value of a single payment event.
|
double |
forecastValue(NotionalExchange event,
RatesProvider provider)
Calculates the forecast value of a single payment event.
|
PointSensitivityBuilder |
forecastValueSensitivity(NotionalExchange event,
RatesProvider provider)
Calculates the forecast value sensitivity of a single payment event.
|
double |
presentValue(NotionalExchange event,
RatesProvider provider)
Calculates the present value of a single payment event.
|
PointSensitivityBuilder |
presentValueSensitivity(NotionalExchange 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 DiscountingNotionalExchangePricer DEFAULT
public DiscountingNotionalExchangePricer(DiscountingPaymentPricer paymentPricer)
paymentPricer - the pricer for Paymentpublic double presentValue(NotionalExchange 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<NotionalExchange>event - the eventprovider - the rates providerpublic PointSensitivityBuilder presentValueSensitivity(NotionalExchange 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<NotionalExchange>event - the eventprovider - the rates providerpublic double forecastValue(NotionalExchange 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<NotionalExchange>event - the eventprovider - the rates providerpublic PointSensitivityBuilder forecastValueSensitivity(NotionalExchange 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<NotionalExchange>event - the eventprovider - the rates providerpublic void explainPresentValue(NotionalExchange event, RatesProvider provider, ExplainMapBuilder builder)
SwapPaymentEventPricer
This adds information to the ExplainMapBuilder to aid understanding of the calculation.
explainPresentValue in interface SwapPaymentEventPricer<NotionalExchange>event - the eventprovider - the rates providerbuilder - the builder to populatepublic MultiCurrencyAmount currencyExposure(NotionalExchange event, RatesProvider provider)
SwapPaymentEventPricercurrencyExposure in interface SwapPaymentEventPricer<NotionalExchange>event - the eventprovider - the rates providerpublic double currentCash(NotionalExchange event, RatesProvider provider)
SwapPaymentEventPricercurrentCash in interface SwapPaymentEventPricer<NotionalExchange>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.