T - the type of eventpublic interface SwapPaymentEventPricer<T extends SwapPaymentEvent>
This function provides the ability to price a SwapPaymentEvent.
Implementations must be immutable and thread-safe functions.
| Modifier and Type | Method and Description |
|---|---|
MultiCurrencyAmount |
currencyExposure(T event,
RatesProvider provider)
Calculates the currency exposure of a single payment event.
|
double |
currentCash(T event,
RatesProvider provider)
Calculates the current cash of a single payment event.
|
void |
explainPresentValue(T event,
RatesProvider provider,
ExplainMapBuilder builder)
Explains the present value of a single payment event.
|
double |
forecastValue(T event,
RatesProvider provider)
Calculates the forecast value of a single payment event.
|
PointSensitivityBuilder |
forecastValueSensitivity(T event,
RatesProvider provider)
Calculates the forecast value sensitivity of a single payment event.
|
double |
presentValue(T event,
RatesProvider provider)
Calculates the present value of a single payment event.
|
PointSensitivityBuilder |
presentValueSensitivity(T event,
RatesProvider provider)
Calculates the present value sensitivity of a single payment event.
|
static SwapPaymentEventPricer<SwapPaymentEvent> |
standard()
Returns the standard instance of the function.
|
static SwapPaymentEventPricer<SwapPaymentEvent> standard()
Use this method to avoid a direct dependency on the implementation.
double presentValue(T event, RatesProvider provider)
The 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.
event - the eventprovider - the rates providerPointSensitivityBuilder presentValueSensitivity(T event, RatesProvider provider)
The present value sensitivity of the event is the sensitivity of the present value to the underlying curves.
event - the eventprovider - the rates providerdouble forecastValue(T event, RatesProvider provider)
The 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.
event - the eventprovider - the rates providerPointSensitivityBuilder forecastValueSensitivity(T event, RatesProvider provider)
The forecast value sensitivity of the event is the sensitivity of the forecast value to the underlying curves.
event - the eventprovider - the rates providervoid explainPresentValue(T event, RatesProvider provider, ExplainMapBuilder builder)
This adds information to the ExplainMapBuilder to aid understanding of the calculation.
event - the eventprovider - the rates providerbuilder - the builder to populateMultiCurrencyAmount currencyExposure(T event, RatesProvider provider)
event - the eventprovider - the rates providerdouble currentCash(T event, RatesProvider provider)
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.