public class ForwardCurveWithFixings extends PiecewiseCurve implements ForwardCurve
PiecewiseCurve.Builder| Constructor and Description |
|---|
ForwardCurveWithFixings(ForwardCurve curveInterface,
ForwardCurve fixedPartCurve,
double fixedPartStartTime,
double fixedPartEndTime)
Create a piecewise forward curve.
|
| Modifier and Type | Method and Description |
|---|---|
ForwardCurveWithFixings |
clone()
Create a deep copied clone.
|
Curve |
getCloneForParameter(double[] value)
Create a clone with a modified parameter.
|
String |
getDiscountCurveName() |
double |
getForward(AnalyticModel model,
double fixingTime)
Returns the forward for the corresponding fixing time.
|
double |
getForward(AnalyticModel model,
double fixingTime,
double paymentOffset)
Returns the forward for the corresponding fixing time and paymentOffset.
|
double[] |
getForwards(AnalyticModel 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.
|
getBaseCurve, getCloneBuilder, getFixedPartCurve, getFixedPartEndTime, getFixedPartStartTime, getName, getParameter, getReferenceDate, getValue, getValue, setParameter, toStringgetValuesequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCloneBuilder, getName, getReferenceDate, getValue, getValuegetParameter, setParameterpublic ForwardCurveWithFixings(ForwardCurve curveInterface, ForwardCurve fixedPartCurve, double fixedPartStartTime, double fixedPartEndTime)
curveInterface - Base curve, to be used by default.fixedPartCurve - CurveFromInterpolationPoints to be used for the open time interval from fixedPartStartTime to fixedPartEndTime.fixedPartStartTime - Start time of the interval where we use the fixedPartCurve.fixedPartEndTime - End time of the interval where we use the fixedPartCurve.public double getForward(AnalyticModel model, double fixingTime)
ForwardCurvegetForward in interface ForwardCurvemodel - An analytic model providing a context. Some curves do not need this (can be null).fixingTime - The fixing time of the index associated with this forward curve.public double getForward(AnalyticModel model, double fixingTime, double paymentOffset)
ForwardCurvegetForward in interface ForwardCurvemodel - An analytic model providing a context. Some curves do not need this (can be null).fixingTime - The fixing time of the index associated with this forward curve.paymentOffset - The payment offset (as internal day count fraction) specifying the payment of this index. Used only as a fallback and/or consistency check.public double[] getForwards(AnalyticModel 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.public String getDiscountCurveName()
getDiscountCurveName in interface ForwardCurvepublic double getPaymentOffset(double fixingTime)
ForwardCurvegetPaymentOffset in interface ForwardCurvefixingTime - The fixing time of the index associated with this forward curve.public Curve getCloneForParameter(double[] value) throws CloneNotSupportedException
ParameterObjectgetCloneForParameter in interface ParameterObjectgetCloneForParameter in interface CurvegetCloneForParameter in class PiecewiseCurvevalue - The new parameter.CloneNotSupportedException - Thrown, when the curve could not be cloned.public ForwardCurveWithFixings clone() throws CloneNotSupportedException
Curveclone in interface Curveclone in class PiecewiseCurveCloneNotSupportedException - Thrown, when the curve could not be cloned.Copyright © 2019. All rights reserved.