public abstract class AbstractForwardCurve extends Curve implements ForwardCurveInterface
Curve.CurveBuilder, Curve.ExtrapolationMethod, Curve.InterpolationEntity, Curve.InterpolationMethod
Modifier and Type | Field and Description |
---|---|
protected String |
discountCurveName |
protected BusinessdayCalendarInterface |
paymentBusinessdayCalendar |
protected BusinessdayCalendarInterface.DateRollConvention |
paymentDateRollConvention |
protected String |
paymentOffsetCode |
Constructor and Description |
---|
AbstractForwardCurve(String name,
LocalDate referenceDate,
double paymentOffset,
String discountCurveName)
Construct a base forward curve with a reference date and a payment offset.
|
AbstractForwardCurve(String name,
LocalDate referenceDate,
String paymentOffsetCode,
BusinessdayCalendarInterface paymentBusinessdayCalendar,
BusinessdayCalendarInterface.DateRollConvention paymentDateRollConvention,
Curve.InterpolationMethod interpolationMethod,
Curve.ExtrapolationMethod extrapolationMethod,
Curve.InterpolationEntity interpolationEntity,
String discountCurveName)
Construct a base forward curve with a reference date and a payment offset.
|
AbstractForwardCurve(String name,
LocalDate referenceDate,
String paymentOffsetCode,
BusinessdayCalendarInterface paymentBusinessdayCalendar,
BusinessdayCalendarInterface.DateRollConvention paymentDateRollConvention,
String discountCurveName)
Construct a base forward curve with a reference date and a payment offset.
|
Modifier and Type | Method and Description |
---|---|
String |
getDiscountCurveName() |
RandomVariableInterface[] |
getForwards(AnalyticModelInterface model,
double[] fixingTimes)
Returns the forwards for a given vector fixing times.
|
double |
getPaymentOffset(double fixingTime)
Returns the payment offset associated with this forward curve and a corresponding fixingTime.
|
String |
toString() |
addPoint, clone, getCloneBuilder, getCloneForParameter, getExtrapolationMethod, getInterpolationEntity, getInterpolationMethod, getParameter, getParameterIndex, getTimeIndex, getValue, getValue, setParameter
getName, getReferenceDate, getValues
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getForward, getForward
clone, getCloneBuilder, getCloneForParameter, getName, getReferenceDate, getValue, getValue
getParameter, setParameter
protected final String discountCurveName
protected final String paymentOffsetCode
protected final BusinessdayCalendarInterface paymentBusinessdayCalendar
protected final BusinessdayCalendarInterface.DateRollConvention paymentDateRollConvention
public AbstractForwardCurve(String name, LocalDate referenceDate, String paymentOffsetCode, BusinessdayCalendarInterface paymentBusinessdayCalendar, BusinessdayCalendarInterface.DateRollConvention paymentDateRollConvention, Curve.InterpolationMethod interpolationMethod, Curve.ExtrapolationMethod extrapolationMethod, Curve.InterpolationEntity interpolationEntity, String discountCurveName)
name
- The name of this curve.referenceDate
- The reference date for this curve, i.e., the date which defined t=0.paymentOffsetCode
- The maturity of the index modeled by this curve.paymentBusinessdayCalendar
- The business day calendar used for adjusting the payment date.paymentDateRollConvention
- The date roll convention used for adjusting the payment date.interpolationMethod
- The interpolation method used for the curve.extrapolationMethod
- The extrapolation method used for the curve.interpolationEntity
- The entity interpolated/extrapolated.discountCurveName
- The name of the discount curve associated with this forward curve (e.g. OIS for collateralized forwards).public AbstractForwardCurve(String name, LocalDate referenceDate, String paymentOffsetCode, BusinessdayCalendarInterface paymentBusinessdayCalendar, BusinessdayCalendarInterface.DateRollConvention paymentDateRollConvention, String discountCurveName)
name
- The name of this curve.referenceDate
- The reference date for this curve, i.e., the date which defined t=0.paymentOffsetCode
- The maturity of the index modeled by this curve.paymentBusinessdayCalendar
- The business day calendar used for adjusting the payment date.paymentDateRollConvention
- The date roll convention used for adjusting the payment date.discountCurveName
- The name of the discount curve associated with this forward curve (e.g. OIS for collateralized forwards).public AbstractForwardCurve(String name, LocalDate referenceDate, double paymentOffset, String discountCurveName)
name
- The name of this curve.referenceDate
- The reference date for this curve, i.e., the date which defined t=0.paymentOffset
- The maturity of the index modeled by this curve.discountCurveName
- The name of the discount curve associated with this forward curve (e.g. OIS for collateralized forwards).public String getDiscountCurveName()
getDiscountCurveName
in interface ForwardCurveInterface
public double getPaymentOffset(double fixingTime)
ForwardCurveInterface
getPaymentOffset
in interface ForwardCurveInterface
fixingTime
- The fixing time of the index associated with this forward curve.public RandomVariableInterface[] getForwards(AnalyticModelInterface model, double[] fixingTimes)
model
- An analytic model providing a context. The discount curve (if needed) is obtained from this model.fixingTimes
- The given fixing times.Copyright © 2018. All rights reserved.