Class CdsIndexCalibrationTrade
- java.lang.Object
 - 
- com.opengamma.strata.product.credit.CdsIndexCalibrationTrade
 
 
- 
- All Implemented Interfaces:
 CalculationTarget,PortfolioItem,Trade,Serializable,org.joda.beans.Bean,org.joda.beans.ImmutableBean
public final class CdsIndexCalibrationTrade extends Object implements Trade, org.joda.beans.ImmutableBean, Serializable
A trade in a CDS index used for credit curve calibration.The CDS index trade and market quote are stored in this class.
CdsIndexTradeandResolvedCdsIndexTradeshould be used for pricing.- See Also:
 - Serialized Form
 
 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCdsIndexCalibrationTrade.MetaThe meta-bean forCdsIndexCalibrationTrade. 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)TradeInfogetInfo()Gets the standard trade information.CdsQuotegetQuote()Gets the CDS index quote.CdsIndexTradegetUnderlyingTrade()Gets the underlying CDS index trade.inthashCode()static CdsIndexCalibrationTrade.Metameta()The meta-bean forCdsIndexCalibrationTrade.CdsIndexCalibrationTrade.MetametaBean()static CdsIndexCalibrationTradeof(CdsIndexTrade trade, CdsQuote quote)Creates an instance.PortfolioItemSummarysummarize()Summarizes the portfolio item.StringtoString()CdsIndexCalibrationTradewithInfo(PortfolioItemInfo info)Returns an instance with the specified info.- 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait 
- 
Methods inherited from interface com.opengamma.strata.product.PortfolioItem
getId 
 - 
 
 - 
 
- 
- 
Method Detail
- 
of
public static CdsIndexCalibrationTrade of(CdsIndexTrade trade, CdsQuote quote)
Creates an instance.- Parameters:
 trade- the tradequote- the quote- Returns:
 - the instance
 
 
- 
getInfo
public TradeInfo getInfo()
Description copied from interface:TradeGets the standard trade information.All trades contain this standard set of information.
- Specified by:
 getInfoin interfacePortfolioItem- Specified by:
 getInfoin interfaceTrade- Returns:
 - the trade information
 
 
- 
withInfo
public CdsIndexCalibrationTrade withInfo(PortfolioItemInfo info)
Description copied from interface:TradeReturns an instance with the specified info.- Specified by:
 withInfoin interfacePortfolioItem- Specified by:
 withInfoin interfaceTrade- Parameters:
 info- the new info- Returns:
 - the instance with the specified info
 
 
- 
summarize
public PortfolioItemSummary summarize()
Description copied from interface:PortfolioItemSummarizes the portfolio item.This provides a summary, including a human readable description.
- Specified by:
 summarizein interfacePortfolioItem- Specified by:
 summarizein interfaceTrade- Returns:
 - the summary of the item
 
 
- 
meta
public static CdsIndexCalibrationTrade.Meta meta()
The meta-bean forCdsIndexCalibrationTrade.- Returns:
 - the meta-bean, not null
 
 
- 
metaBean
public CdsIndexCalibrationTrade.Meta metaBean()
- Specified by:
 metaBeanin interfaceorg.joda.beans.Bean
 
- 
getUnderlyingTrade
public CdsIndexTrade getUnderlyingTrade()
Gets the underlying CDS index trade.- Returns:
 - the value of the property, not null
 
 
- 
getQuote
public CdsQuote getQuote()
Gets the CDS index quote.- Returns:
 - the value of the property, not null
 
 
 - 
 
 -