public class ForwardCurveWithFixings extends PiecewiseCurve implements ForwardCurveInterface
PiecewiseCurve.CurveBuilder| Constructor and Description |
|---|
ForwardCurveWithFixings(ForwardCurveInterface curveInterface,
ForwardCurveInterface fixedPartCurve,
double fixedPartStartTime,
double fixedPartEndTime)
Create a piecewise forward curve.
|
| Modifier and Type | Method and Description |
|---|---|
ForwardCurveWithFixings |
clone()
Create a deep copied clone.
|
CurveInterface |
getCloneForParameter(double[] value)
Create a clone with a modified parameter.
|
String |
getDiscountCurveName() |
double |
getForward(AnalyticModelInterface model,
double fixingTime)
Returns the forward for the corresponding fixing time.
|
double |
getForward(AnalyticModelInterface model,
double fixingTime,
double paymentOffset)
Returns the forward for the corresponding fixing time and paymentOffset.
|
double[] |
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.
|
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(ForwardCurveInterface curveInterface, ForwardCurveInterface fixedPartCurve, double fixedPartStartTime, double fixedPartEndTime)
curveInterface - Base curve, to be used by default.fixedPartCurve - Curve 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(AnalyticModelInterface model, double fixingTime)
ForwardCurveInterfacegetForward in interface ForwardCurveInterfacemodel - 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(AnalyticModelInterface model, double fixingTime, double paymentOffset)
ForwardCurveInterfacegetForward in interface ForwardCurveInterfacemodel - 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(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.public String getDiscountCurveName()
getDiscountCurveName in interface ForwardCurveInterfacepublic double getPaymentOffset(double fixingTime)
ForwardCurveInterfacegetPaymentOffset in interface ForwardCurveInterfacefixingTime - The fixing time of the index associated with this forward curve.public CurveInterface getCloneForParameter(double[] value) throws CloneNotSupportedException
ParameterObjectInterfacegetCloneForParameter in interface ParameterObjectInterfacegetCloneForParameter in interface CurveInterfacegetCloneForParameter in class PiecewiseCurvevalue - The new parameter.CloneNotSupportedException - Thrown, when the curve could not be cloned.public ForwardCurveWithFixings clone() throws CloneNotSupportedException
CurveInterfaceclone in interface CurveInterfaceclone in class PiecewiseCurveCloneNotSupportedException - Thrown, when the curve could not be cloned.Copyright © 2017. All rights reserved.