public final class SwapIsdaCreditCurveNode extends Object implements IsdaCreditCurveNode, org.joda.beans.ImmutableBean, Serializable
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.
observableId is used to access the market data value of the swap par rate.
| Modifier and Type | Class and Description |
|---|---|
static class |
SwapIsdaCreditCurveNode.Builder
The bean-builder for
SwapIsdaCreditCurveNode. |
static class |
SwapIsdaCreditCurveNode.Meta
The meta-bean for
SwapIsdaCreditCurveNode. |
| Modifier and Type | Method and Description |
|---|---|
static SwapIsdaCreditCurveNode.Builder |
builder()
Returns a builder used to create an instance of the bean.
|
LocalDate |
date(LocalDate tradeDate,
ReferenceData refData)
Calculates the date associated with the node.
|
boolean |
equals(Object obj) |
BusinessDayAdjustment |
getBusinessDayAdjustment()
Gets the business day adjustment to apply to the start date, end date and accrual schedule.
|
DayCount |
getDayCount()
Gets the day count convention applicable.
|
String |
getLabel()
Gets the label to use for the node, defaulted.
|
ObservableId |
getObservableId()
Gets the identifier of the market data value that provides the rate.
|
Frequency |
getPaymentFrequency()
Gets the periodic frequency of payments, optional with defaulting getter.
|
DaysAdjustment |
getSpotDateOffset()
Gets the offset of the start date from the trade date.
|
Tenor |
getTenor()
Gets the tenor of the swap.
|
int |
hashCode() |
static SwapIsdaCreditCurveNode.Meta |
meta()
The meta-bean for
SwapIsdaCreditCurveNode. |
SwapIsdaCreditCurveNode.Meta |
metaBean() |
TenorDateParameterMetadata |
metadata(LocalDate nodeDate)
Returns metadata for the node from the node date.
|
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.
|
SwapIsdaCreditCurveNode.Builder |
toBuilder()
Returns a builder that allows this bean to be mutated.
|
String |
toString() |
public static SwapIsdaCreditCurveNode of(ObservableId observableId, DaysAdjustment spotDateOffset, BusinessDayAdjustment businessDayAdjustment, Tenor tenor, DayCount dayCount, Frequency paymentFrequency)
The label will be created from tenor.
observableId - the observable IDspotDateOffset - the spot date offsetbusinessDayAdjustment - the business day adjustmenttenor - the tenordayCount - the day countpaymentFrequency - the payment frequencypublic LocalDate date(LocalDate tradeDate, ReferenceData refData)
IsdaCreditCurveNodeEach curve node has an associated date which defines the x-value in the curve. This is typically the adjusted end date of the instrument.
date in interface IsdaCreditCurveNodetradeDate - the trade daterefData - the reference datapublic TenorDateParameterMetadata metadata(LocalDate nodeDate)
IsdaCreditCurveNode
The node date must be computed by IsdaCreditCurveNode.date(LocalDate, ReferenceData).
metadata in interface IsdaCreditCurveNodenodeDate - the node date used when calibrating the curvepublic static SwapIsdaCreditCurveNode.Meta meta()
SwapIsdaCreditCurveNode.public static SwapIsdaCreditCurveNode.Builder builder()
public SwapIsdaCreditCurveNode.Meta metaBean()
metaBean in interface org.joda.beans.Beanpublic String getLabel()
When building, this will default based on the tenor if not specified.
getLabel in interface IsdaCreditCurveNodepublic ObservableId getObservableId()
getObservableId in interface IsdaCreditCurveNodepublic Tenor getTenor()
This is the period from the first accrual date to the last accrual date.
public DaysAdjustment getSpotDateOffset()
The offset is applied to the trade date and is typically plus 2 business days.
public BusinessDayAdjustment getBusinessDayAdjustment()
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.
public DayCount getDayCount()
This is used to convert schedule period dates to a numerical value.
public Frequency getPaymentFrequency()
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.
public SwapIsdaCreditCurveNode.Builder toBuilder()
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.