public class Forward extends AbstractAnalyticProduct implements AnalyticProduct
| Constructor and Description |
|---|
Forward(double maturity,
double paymentOffset,
String forwardCurveName,
double spread,
String discountCurveName)
Creates a forward.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getValue(double evaluationTime,
AnalyticModel model)
Return the valuation of the product using the given model.
|
getValue, getValuepublic Forward(double maturity,
double paymentOffset,
String forwardCurveName,
double spread,
String discountCurveName)
maturity - Maturity, i.e., fixing on the forward curve.paymentOffset - Payment offset, i.e. payment is maturity + paymentOffset.forwardCurveName - Name of the forward curve, leave empty if this is a fix payment.spread - Additional fixed payment (if any).discountCurveName - Name of the discount curve for the forward.public double getValue(double evaluationTime,
AnalyticModel model)
AnalyticProductAnalyticModel.getValue in interface AnalyticProductevaluationTime - The evaluation time as double. Cash flows prior and including this time are not considered.model - The model under which the product is valued.Copyright © 2019. All rights reserved.