| Modifier and Type | Field and Description |
|---|---|
static DiscountingPaymentPricer |
DEFAULT
Default implementation.
|
| Constructor and Description |
|---|
DiscountingPaymentPricer()
Creates an instance.
|
| Modifier and Type | Method and Description |
|---|---|
CashFlows |
cashFlows(Payment payment,
BaseProvider provider)
Calculates the future cash flow of the payment.
|
MultiCurrencyAmount |
currencyExposure(Payment payment,
BaseProvider provider)
Calculates the currency exposure.
|
CurrencyAmount |
currentCash(Payment payment,
BaseProvider provider)
Calculates the current cash.
|
ExplainMap |
explainPresentValue(Payment payment,
BaseProvider provider)
Explains the present value of the payment.
|
CurrencyAmount |
forecastValue(Payment payment,
BaseProvider provider)
Computes the forecast value of the payment.
|
double |
forecastValueAmount(Payment payment,
BaseProvider provider)
Computes the forecast value of the payment.
|
CurrencyAmount |
presentValue(Payment payment,
BaseProvider provider)
Computes the present value of the payment by discounting.
|
CurrencyAmount |
presentValue(Payment payment,
DiscountFactors discountFactors)
Computes the present value of the payment by discounting.
|
double |
presentValueAmount(Payment payment,
BaseProvider provider)
Computes the present value of the payment by discounting.
|
PointSensitivityBuilder |
presentValueSensitivity(Payment payment,
BaseProvider provider)
Compute the present value curve sensitivity of the payment.
|
PointSensitivityBuilder |
presentValueSensitivity(Payment payment,
DiscountFactors discountFactors)
Compute the present value curve sensitivity of the payment.
|
PointSensitivityBuilder |
presentValueSensitivityWithSpread(Payment payment,
DiscountFactors discountFactors,
double zSpread,
CompoundedRateType compoundedRateType,
int periodsPerYear)
Compute the present value curve sensitivity of the payment with z-spread.
|
CurrencyAmount |
presentValueWithSpread(Payment payment,
DiscountFactors discountFactors,
double zSpread,
CompoundedRateType compoundedRateType,
int periodsPerYear)
Computes the present value of the payment with z-spread by discounting.
|
public static final DiscountingPaymentPricer DEFAULT
public CurrencyAmount presentValue(Payment payment, BaseProvider provider)
The present value is zero if the payment date is before the valuation date.
payment - the paymentprovider - the providerpublic CurrencyAmount presentValue(Payment payment, DiscountFactors discountFactors)
The present value is zero if the payment date is before the valuation date.
The specified discount factors should be for the payment currency, however this is not validated.
payment - the paymentdiscountFactors - the discount factors to price againstpublic double presentValueAmount(Payment payment, BaseProvider provider)
The present value is zero if the payment date is before the valuation date.
payment - the paymentprovider - the providerpublic CurrencyAmount presentValueWithSpread(Payment payment, DiscountFactors discountFactors, double zSpread, CompoundedRateType compoundedRateType, int periodsPerYear)
The present value is zero if the payment date is before the valuation date.
The specified discount factors should be for the payment currency, however this is not validated.
The z-spread is a parallel shift applied to continuously compounded rates or periodic compounded rates of the discounting curve.
payment - the paymentdiscountFactors - the discount factors to price againstzSpread - the z-spreadcompoundedRateType - the compounded rate typeperiodsPerYear - the number of periods per yearpublic ExplainMap explainPresentValue(Payment payment, BaseProvider provider)
This returns explanatory information about the calculation.
payment - the paymentprovider - the providerpublic PointSensitivityBuilder presentValueSensitivity(Payment payment, BaseProvider provider)
The present value sensitivity of the payment is the sensitivity of the present value to the discount factor curve. There is no sensitivity if the payment date is before the valuation date.
payment - the paymentprovider - the providerpublic PointSensitivityBuilder presentValueSensitivity(Payment payment, DiscountFactors discountFactors)
The present value sensitivity of the payment is the sensitivity of the present value to the discount factor curve. There is no sensitivity if the payment date is before the valuation date.
The specified discount factors should be for the payment currency, however this is not validated.
payment - the paymentdiscountFactors - the discount factors to price againstpublic PointSensitivityBuilder presentValueSensitivityWithSpread(Payment payment, DiscountFactors discountFactors, double zSpread, CompoundedRateType compoundedRateType, int periodsPerYear)
The present value sensitivity of the payment is the sensitivity of the present value to the discount factor curve. There is no sensitivity if the payment date is before the valuation date.
The specified discount factors should be for the payment currency, however this is not validated.
The z-spread is a parallel shift applied to continuously compounded rates or periodic compounded rates of the discounting curve.
payment - the paymentdiscountFactors - the discount factors to price againstzSpread - the z-spreadcompoundedRateType - the compounded rate typeperiodsPerYear - the number of periods per yearpublic CurrencyAmount forecastValue(Payment payment, BaseProvider provider)
The present value is zero if the payment date is before the valuation date.
payment - the paymentprovider - the providerpublic double forecastValueAmount(Payment payment, BaseProvider provider)
The present value is zero if the payment date is before the valuation date.
payment - the paymentprovider - the providerpublic CashFlows cashFlows(Payment payment, BaseProvider provider)
The cash flow is returned, empty if the payment has already occurred.
payment - the paymentprovider - the providerpublic MultiCurrencyAmount currencyExposure(Payment payment, BaseProvider provider)
payment - the paymentprovider - the providerpublic CurrencyAmount currentCash(Payment payment, BaseProvider provider)
payment - the paymentprovider - the providerCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.