public class ForwardRateAgreement extends AbstractAnalyticProduct implements AnalyticProductInterface
| Constructor and Description |
|---|
ForwardRateAgreement(ScheduleInterface schedule,
double spread,
String forwardCurveName,
String discountCurveName)
Creates a payer FRA.
|
ForwardRateAgreement(ScheduleInterface schedule,
double spread,
String forwardCurveName,
String discountCurveName,
boolean isPayer)
Creates a FRA.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getRate(AnalyticModelInterface model)
Return the par FRA rate for a given curve.
|
double |
getValue(double evaluationTime,
AnalyticModelInterface model)
Return the valuation of the product using the given model.
|
getValue, getValueclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetValuepublic ForwardRateAgreement(ScheduleInterface schedule, double spread, String forwardCurveName, String discountCurveName, boolean isPayer)
schedule - The schedule (provides fixing and periods length).spread - The market FRA rateforwardCurveName - Name of the forward curvediscountCurveName - Name of the discount curve (possibly multi curve setting).isPayer - If true, the fra pays fix, i.e., the payoff is forward - spread. Otherwise it is spread - forward.public ForwardRateAgreement(ScheduleInterface schedule, double spread, String forwardCurveName, String discountCurveName)
schedule - The schedule (provides fixing and periods length).spread - The market FRA rateforwardCurveName - Name of the forward curvediscountCurveName - Name of the discount curve (possibly multi curve setting).public double getValue(double evaluationTime,
AnalyticModelInterface model)
AnalyticProductInterfaceAnalyticModelInterface.getValue in interface AnalyticProductInterfaceevaluationTime - The evaluation time as double. Cash flows prior and including this time are not considered.model - The model under which the product is valued.public double getRate(AnalyticModelInterface model)
model - A given model.Copyright © 2017. All rights reserved.