Class SwapIsdaCreditCurveNode
- java.lang.Object
-
- com.opengamma.strata.market.curve.SwapIsdaCreditCurveNode
-
- All Implemented Interfaces:
IsdaCreditCurveNode,Serializable,org.joda.beans.Bean,org.joda.beans.ImmutableBean
public final class SwapIsdaCreditCurveNode extends Object implements IsdaCreditCurveNode, org.joda.beans.ImmutableBean, Serializable
An ISDA compliant curve node whose instrument is a standard Fixed-Ibor interest rate swap.This node contains the information on the fixed leg of the swap. It is assumed that the compounding not involved, the common business day adjustment is applied to start date, end date and accrual schedule, and the fixed rate is paid on the end date of each payment period.
observableIdis used to access the market data value of the swap par rate.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSwapIsdaCreditCurveNode.BuilderThe bean-builder forSwapIsdaCreditCurveNode.static classSwapIsdaCreditCurveNode.MetaThe meta-bean forSwapIsdaCreditCurveNode.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SwapIsdaCreditCurveNode.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 date, end date and accrual schedule.DayCountgetDayCount()Gets the day count convention applicable.StringgetLabel()Gets the label to use for the node, defaulted.ObservableIdgetObservableId()Gets the identifier of the market data value that provides the rate.FrequencygetPaymentFrequency()Gets the periodic frequency of payments, optional with defaulting getter.DaysAdjustmentgetSpotDateOffset()Gets the offset of the start date from the trade date.TenorgetTenor()Gets the tenor of the swap.inthashCode()static SwapIsdaCreditCurveNode.Metameta()The meta-bean forSwapIsdaCreditCurveNode.SwapIsdaCreditCurveNode.MetametaBean()TenorDateParameterMetadatametadata(LocalDate nodeDate)Returns metadata for the node from the node date.static SwapIsdaCreditCurveNodeof(ObservableId observableId, DaysAdjustment spotDateOffset, BusinessDayAdjustment businessDayAdjustment, Tenor tenor, DayCount dayCount, Frequency paymentFrequency)Returns a curve node for a standard fixed-Ibor swap.SwapIsdaCreditCurveNode.BuildertoBuilder()Returns a builder that allows this bean to be mutated.StringtoString()
-
-
-
Method Detail
-
of
public static SwapIsdaCreditCurveNode of(ObservableId observableId, DaysAdjustment spotDateOffset, BusinessDayAdjustment businessDayAdjustment, Tenor tenor, DayCount dayCount, Frequency paymentFrequency)
Returns a curve node for a standard fixed-Ibor swap.The label will be created from
tenor.- Parameters:
observableId- the observable IDspotDateOffset- the spot date offsetbusinessDayAdjustment- the business day adjustmenttenor- the tenordayCount- the day countpaymentFrequency- the payment frequency- Returns:
- the curve node
-
date
public 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 interfaceIsdaCreditCurveNode- Parameters:
tradeDate- the trade daterefData- the reference data- Returns:
- the node date
-
metadata
public 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 interfaceIsdaCreditCurveNode- Parameters:
nodeDate- the node date used when calibrating the curve- Returns:
- metadata for the node
-
meta
public static SwapIsdaCreditCurveNode.Meta meta()
The meta-bean forSwapIsdaCreditCurveNode.- Returns:
- the meta-bean, not null
-
builder
public static SwapIsdaCreditCurveNode.Builder builder()
Returns a builder used to create an instance of the bean.- Returns:
- the builder, not null
-
metaBean
public SwapIsdaCreditCurveNode.Meta metaBean()
- Specified by:
metaBeanin interfaceorg.joda.beans.Bean
-
getLabel
public 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 interfaceIsdaCreditCurveNode- Returns:
- the value of the property, not empty
-
getObservableId
public ObservableId getObservableId()
Gets the identifier of the market data value that provides the rate.- Specified by:
getObservableIdin interfaceIsdaCreditCurveNode- Returns:
- the value of the property, not null
-
getTenor
public Tenor getTenor()
Gets the tenor of the swap.This is the period from the first accrual date to the last accrual date.
- Returns:
- the value of the property, not null
-
getSpotDateOffset
public 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
-
getBusinessDayAdjustment
public BusinessDayAdjustment getBusinessDayAdjustment()
Gets the business day adjustment to apply to the start date, end date and accrual schedule.The date property is an unadjusted date and as such might be a weekend or holiday. The adjustment specified here is used to convert a relevant date to a valid business day.
- Returns:
- the value of the property, not null
-
getDayCount
public DayCount getDayCount()
Gets the day count convention applicable.This is used to convert schedule period dates to a numerical value.
- Returns:
- the value of the property, not null
-
getPaymentFrequency
public Frequency getPaymentFrequency()
Gets the periodic frequency of payments, optional with defaulting getter.Regular payments will be made at the specified periodic frequency. The compounding is not allowed in this node. Thus the frequency is the same as the accrual periodic frequency.
- Returns:
- the value of the property, not null
-
toBuilder
public SwapIsdaCreditCurveNode.Builder toBuilder()
Returns a builder that allows this bean to be mutated.- Returns:
- the mutable builder, not null
-
-