Class DepositIsdaCreditCurveNode
- java.lang.Object
- 
- com.opengamma.strata.market.curve.DepositIsdaCreditCurveNode
 
- 
- All Implemented Interfaces:
- IsdaCreditCurveNode,- Serializable,- org.joda.beans.Bean,- org.joda.beans.ImmutableBean
 
 public final class DepositIsdaCreditCurveNode extends Object implements IsdaCreditCurveNode, org.joda.beans.ImmutableBean, Serializable An ISDA compliant curve node whose instrument is a term deposit.A term deposit is a financial instrument that provides a fixed rate of interest on an amount for a specific term. observableIdis used to access the market data value of this fixed rate.- See Also:
- Serialized Form
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classDepositIsdaCreditCurveNode.BuilderThe bean-builder forDepositIsdaCreditCurveNode.static classDepositIsdaCreditCurveNode.MetaThe meta-bean forDepositIsdaCreditCurveNode.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DepositIsdaCreditCurveNode.Builderbuilder()Returns a builder used to create an instance of the bean.LocalDatedate(LocalDate tradeDate, ReferenceData refData)Calculates the date associated with the node.booleanequals(Object obj)BusinessDayAdjustmentgetBusinessDayAdjustment()Gets the business day adjustment to apply to the start and end date.DayCountgetDayCount()Gets the day count convention.StringgetLabel()Gets the label to use for the node, defaulted.ObservableIdgetObservableId()Gets the identifier of the market data value that provides the rate.DaysAdjustmentgetSpotDateOffset()Gets the offset of the start date from the trade date.TenorgetTenor()Gets the period between the start date and the end date.inthashCode()static DepositIsdaCreditCurveNode.Metameta()The meta-bean forDepositIsdaCreditCurveNode.DepositIsdaCreditCurveNode.MetametaBean()TenorDateParameterMetadatametadata(LocalDate nodeDate)Returns metadata for the node from the node date.static DepositIsdaCreditCurveNodeof(ObservableId observableId, DaysAdjustment spotDateOffset, BusinessDayAdjustment businessDayAdjustment, Tenor tenor, DayCount dayCount)Returns a curve node for a term deposit.DepositIsdaCreditCurveNode.BuildertoBuilder()Returns a builder that allows this bean to be mutated.StringtoString()
 
- 
- 
- 
Method Detail- 
ofpublic static DepositIsdaCreditCurveNode of(ObservableId observableId, DaysAdjustment spotDateOffset, BusinessDayAdjustment businessDayAdjustment, Tenor tenor, DayCount dayCount) Returns a curve node for a term deposit.The label will be created using tenor.- Parameters:
- observableId- the observable ID
- spotDateOffset- the spot date offset
- businessDayAdjustment- the business day adjustment
- tenor- the tenor
- dayCount- the day count
- Returns:
- the curve node
 
 - 
datepublic LocalDate date(LocalDate tradeDate, ReferenceData refData) Description copied from interface:IsdaCreditCurveNodeCalculates the date associated with the node.Each curve node has an associated date which defines the x-value in the curve. This is typically the adjusted end date of the instrument. - Specified by:
- datein interface- IsdaCreditCurveNode
- Parameters:
- tradeDate- the trade date
- refData- the reference data
- Returns:
- the node date
 
 - 
metadatapublic TenorDateParameterMetadata metadata(LocalDate nodeDate) Description copied from interface:IsdaCreditCurveNodeReturns metadata for the node from the node date.The node date must be computed by IsdaCreditCurveNode.date(LocalDate, ReferenceData).- Specified by:
- metadatain interface- IsdaCreditCurveNode
- Parameters:
- nodeDate- the node date used when calibrating the curve
- Returns:
- metadata for the node
 
 - 
metapublic static DepositIsdaCreditCurveNode.Meta meta() The meta-bean forDepositIsdaCreditCurveNode.- Returns:
- the meta-bean, not null
 
 - 
builderpublic static DepositIsdaCreditCurveNode.Builder builder() Returns a builder used to create an instance of the bean.- Returns:
- the builder, not null
 
 - 
metaBeanpublic DepositIsdaCreditCurveNode.Meta metaBean() - Specified by:
- metaBeanin interface- org.joda.beans.Bean
 
 - 
getLabelpublic String getLabel() Gets the label to use for the node, defaulted.When building, this will default based on the tenor if not specified. - Specified by:
- getLabelin interface- IsdaCreditCurveNode
- Returns:
- the value of the property, not empty
 
 - 
getObservableIdpublic ObservableId getObservableId() Gets the identifier of the market data value that provides the rate.- Specified by:
- getObservableIdin interface- IsdaCreditCurveNode
- Returns:
- the value of the property, not null
 
 - 
getTenorpublic Tenor getTenor() Gets the period between the start date and the end date.- Returns:
- the value of the property, not null
 
 - 
getSpotDateOffsetpublic DaysAdjustment getSpotDateOffset() Gets the offset of the start date from the trade date.The offset is applied to the trade date and is typically plus 2 business days. - Returns:
- the value of the property, not null
 
 - 
getBusinessDayAdjustmentpublic BusinessDayAdjustment getBusinessDayAdjustment() Gets the business day adjustment to apply to the start and end date.The start and end date will be adjusted as defined here. - Returns:
- the value of the property, not null
 
 - 
getDayCountpublic DayCount getDayCount() Gets the day count convention.This defines the term year fraction. - Returns:
- the value of the property, not null
 
 - 
toBuilderpublic DepositIsdaCreditCurveNode.Builder toBuilder() Returns a builder that allows this bean to be mutated.- Returns:
- the mutable builder, not null
 
 
- 
 
-