public class InterestRateSwapLegProductDescriptor extends Object implements InterestRateProductDescriptor
| Constructor and Description |
|---|
InterestRateSwapLegProductDescriptor(String forwardCurveName,
String discountCurveName,
ScheduleDescriptor legSchedule,
double[] notionals,
double[] spreads,
boolean isNotionalExchanged)
Create the descriptor with notional and spread variable between periods.
|
InterestRateSwapLegProductDescriptor(String forwardCurveName,
String discountCurveName,
ScheduleDescriptor legSchedule,
double notional,
double spread,
boolean isNotionalExchanged)
Create the descriptor with period uniform notional and spread.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDiscountCurveName()
Return the name of the discount curve in this descriptor.
|
String |
getForwardCurveName()
Return the name of the forward curve in this descriptor.
|
ScheduleDescriptor |
getLegScheduleDescriptor()
Return the descriptor of the schedule of this product descriptor.
|
double[] |
getNotionals()
Return the notionals per period of this descriptor.
|
double[] |
getSpreads()
Return the spreads per period of this descriptor.
|
boolean |
isNotionalExchanged()
Indicates whether the leg exchanges notional.
|
String |
name()
Return the name of the model represented by this descriptor.
|
Integer |
version()
Return the version of the model description.
|
public InterestRateSwapLegProductDescriptor(String forwardCurveName, String discountCurveName, ScheduleDescriptor legSchedule, double notional, double spread, boolean isNotionalExchanged)
forwardCurveName - The name of the forward curve this leg is quoted on. (Or null/empty)discountCurveName - The name of the curve this leg is to be discounted with.legSchedule - ScheduleFromPeriods of the leg.notional - The notional.spread - Fixed spread on the forward or fix rate.isNotionalExchanged - If true, the leg will pay notional at the beginning of the swap and receive notional at the end of the swap.public InterestRateSwapLegProductDescriptor(String forwardCurveName, String discountCurveName, ScheduleDescriptor legSchedule, double[] notionals, double[] spreads, boolean isNotionalExchanged)
forwardCurveName - The name of the forward curve this leg is quoted on. (Or null/empty)discountCurveName - The name of the curve this leg is to be discounted with.legSchedule - ScheduleFromPeriods of the leg.notionals - Array of notionals for each period.spreads - Array of fixed spreads on the forward or fix rates for each period.isNotionalExchanged - If true, the leg will pay notional at the beginning of the swap and receive notional at the end of the swap.public String getForwardCurveName()
public String getDiscountCurveName()
public ScheduleDescriptor getLegScheduleDescriptor()
public double[] getNotionals()
public double[] getSpreads()
public boolean isNotionalExchanged()
public Integer version()
ProductDescriptorversion in interface ProductDescriptorpublic String name()
ProductDescriptorname in interface ProductDescriptorCopyright © 2019. All rights reserved.