Class CdsCalibrationTrade
- java.lang.Object
-
- com.opengamma.strata.product.credit.CdsCalibrationTrade
-
- All Implemented Interfaces:
CalculationTarget,PortfolioItem,Trade,Serializable,org.joda.beans.Bean,org.joda.beans.ImmutableBean
public final class CdsCalibrationTrade extends Object implements Trade, org.joda.beans.ImmutableBean, Serializable
A trade in a single-name credit default swap (CDS) used for credit curve calibration.The CDS trade and market quote are stored in this class.
CdsTradeandResolvedCdsTradeshould be used for pricing.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCdsCalibrationTrade.MetaThe meta-bean forCdsCalibrationTrade.
-
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 quote.CdsTradegetUnderlyingTrade()Gets the underlying CDS trade.inthashCode()static CdsCalibrationTrade.Metameta()The meta-bean forCdsCalibrationTrade.CdsCalibrationTrade.MetametaBean()static CdsCalibrationTradeof(CdsTrade trade, CdsQuote quote)Creates an instance.PortfolioItemSummarysummarize()Summarizes the portfolio item.StringtoString()CdsCalibrationTradewithInfo(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 CdsCalibrationTrade of(CdsTrade 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 CdsCalibrationTrade 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 CdsCalibrationTrade.Meta meta()
The meta-bean forCdsCalibrationTrade.- Returns:
- the meta-bean, not null
-
metaBean
public CdsCalibrationTrade.Meta metaBean()
- Specified by:
metaBeanin interfaceorg.joda.beans.Bean
-
getUnderlyingTrade
public CdsTrade getUnderlyingTrade()
Gets the underlying CDS trade.- Returns:
- the value of the property, not null
-
getQuote
public CdsQuote getQuote()
Gets the CDS quote.- Returns:
- the value of the property, not null
-
-