public class SwapLeg extends AbstractAnalyticProduct implements AnalyticProductInterface
ScheduleInterface.| Constructor and Description |
|---|
SwapLeg(ScheduleInterface legSchedule,
String forwardCurveName,
double spread,
String discountCurveName)
Creates a swap leg (without notional exchange).
|
SwapLeg(ScheduleInterface legSchedule,
String forwardCurveName,
double spread,
String discountCurveName,
boolean isNotionalExchanged)
Creates a swap leg.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDiscountCurveName() |
String |
getForwardCurveName() |
ScheduleInterface |
getSchedule() |
double |
getSpread() |
double |
getValue(double evaluationTime,
AnalyticModelInterface model)
Return the valuation of the product using the given model.
|
boolean |
isNotionalExchanged() |
String |
toString() |
getValue, getValueclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetValuepublic SwapLeg(ScheduleInterface legSchedule, String forwardCurveName, double spread, String discountCurveName, boolean isNotionalExchanged)
legSchedule - Schedule of the leg.forwardCurveName - Name of the forward curve, leave empty if this is a fix leg.spread - Fixed spread on the forward or fix rate.discountCurveName - Name of the discount curve for the leg.isNotionalExchanged - If true, the leg will pay notional at the beginning of each swap period and receive notional at the end of the swap period. Note that the cash flow date for the notional is periodStart and periodEnd (not fixingDate and paymentDate).public SwapLeg(ScheduleInterface legSchedule, String forwardCurveName, double spread, String discountCurveName)
legSchedule - Schedule of the leg.forwardCurveName - Name of the forward curve, leave empty if this is a fix leg.spread - Fixed spread on the forward or fix rate.discountCurveName - Name of the discount curve for the leg.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 ScheduleInterface getSchedule()
public String getForwardCurveName()
public double getSpread()
public String getDiscountCurveName()
public boolean isNotionalExchanged()
Copyright © 2017. All rights reserved.