public final class IsdaCreditCurveDefinition extends Object implements org.joda.beans.ImmutableBean, Serializable
An ISDA compliant curve is built from a number of parameters and described by metadata.
Calibration is based on a list of IsdaCreditCurveNode instances, one for each parameter,
that specify the underlying instruments.
| Modifier and Type | Class and Description |
|---|---|
static class |
IsdaCreditCurveDefinition.Meta
The meta-bean for
IsdaCreditCurveDefinition. |
| Modifier and Type | Method and Description |
|---|---|
InterpolatedNodalCurve |
curve(DoubleArray yearFractions,
DoubleArray zeroRates)
Creates the ISDA compliant curve.
|
boolean |
equals(Object obj) |
Currency |
getCurrency()
Gets the curve currency.
|
ImmutableList<IsdaCreditCurveNode> |
getCurveNodes()
Gets the curve nodes.
|
LocalDate |
getCurveValuationDate()
Gets the curve valuation date.
|
DayCount |
getDayCount()
Gets the day count.
|
CurveName |
getName()
Gets the curve name.
|
int |
hashCode() |
boolean |
isComputeJacobian()
Gets the flag indicating if the Jacobian matrices should be computed and stored in metadata or not.
|
boolean |
isStoreNodeTrade()
Gets the flag indicating if the node trade should be stored or not.
|
static IsdaCreditCurveDefinition.Meta |
meta()
The meta-bean for
IsdaCreditCurveDefinition. |
IsdaCreditCurveDefinition.Meta |
metaBean() |
static IsdaCreditCurveDefinition |
of(CurveName name,
Currency currency,
LocalDate curveValuationDate,
DayCount dayCount,
List<? extends IsdaCreditCurveNode> curveNodes,
boolean computeJacobian,
boolean storeNodeTrade)
Obtains an instance.
|
String |
toString() |
public static IsdaCreditCurveDefinition of(CurveName name, Currency currency, LocalDate curveValuationDate, DayCount dayCount, List<? extends IsdaCreditCurveNode> curveNodes, boolean computeJacobian, boolean storeNodeTrade)
name - the namecurrency - the currencycurveValuationDate - the curve valuation datedayCount - the day countcurveNodes - the curve nodescomputeJacobian - the Jacobian flagstoreNodeTrade - the node trade flagpublic InterpolatedNodalCurve curve(DoubleArray yearFractions, DoubleArray zeroRates)
The parameter metadata is not stored in the metadata of the curve.
yearFractions - the year fraction valueszeroRates - the zero rate valuespublic static IsdaCreditCurveDefinition.Meta meta()
IsdaCreditCurveDefinition.public IsdaCreditCurveDefinition.Meta metaBean()
metaBean in interface org.joda.beans.Beanpublic CurveName getName()
public Currency getCurrency()
The resultant curve will be used for discounting based on this currency.
This is typically the same as the currency of the curve node instruments in curveNodes.
public LocalDate getCurveValuationDate()
The date on which the resultant curve is used for pricing.
This date is not necessarily the same as the valuationDate of MarketData
on which the market data was snapped.
public DayCount getDayCount()
If the x-value of the curve represents time as a year fraction, the day count can be specified to define how the year fraction is calculated.
public ImmutableList<IsdaCreditCurveNode> getCurveNodes()
The nodes are used to find the par rates and calibrate the curve.
public boolean isComputeJacobian()
public boolean isStoreNodeTrade()
This property is used only for credit curve calibration.
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.