Package com.opengamma.strata.product
Interface ResolvableTrade<T extends ResolvedTrade>
-
- Type Parameters:
T
- the type of the resolved trade
- All Superinterfaces:
CalculationTarget
,PortfolioItem
,Resolvable<T>
,Trade
- All Known Implementing Classes:
BillTrade
,BondFutureOptionTrade
,BondFutureTrade
,BulletPaymentTrade
,CapitalIndexedBondTrade
,CdsIndexTrade
,CdsTrade
,CmsTrade
,DsfTrade
,FixedCouponBondTrade
,FraTrade
,FxNdfTrade
,FxSingleBarrierOptionTrade
,FxSingleTrade
,FxSwapTrade
,FxVanillaOptionTrade
,IborCapFloorTrade
,IborFixingDepositTrade
,IborFutureOptionTrade
,IborFutureTrade
,OvernightFutureTrade
,SwaptionTrade
,SwapTrade
,TermDepositTrade
public interface ResolvableTrade<T extends ResolvedTrade> extends Trade, Resolvable<T>
A trade that can to be resolved using reference data.Resolvable trades are the primary definition of a trade that applications work with. They are resolved when necessary for use with pricers, locking in specific reference data.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
resolve(ReferenceData refData)
Resolves this trade using the specified reference data.ResolvableTrade<T>
withInfo(PortfolioItemInfo info)
Returns an instance with the specified info.-
Methods inherited from interface com.opengamma.strata.product.PortfolioItem
getId
-
-
-
-
Method Detail
-
resolve
T resolve(ReferenceData refData)
Resolves this trade using the specified reference data.This converts this trade to the equivalent resolved form. All
ReferenceDataId
identifiers in this instance will be resolved. The resultingResolvedTrade
is optimized for pricing.Resolved objects may be bound to data that changes over time, such as holiday calendars. If the data changes, such as the addition of a new holiday, the resolved form will not be updated. Care must be taken when placing the resolved form in a cache or persistence layer.
- Specified by:
resolve
in interfaceResolvable<T extends ResolvedTrade>
- Parameters:
refData
- the reference data to use when resolving- Returns:
- the resolved trade
- Throws:
ReferenceDataNotFoundException
- if an identifier cannot be resolved in the reference dataRuntimeException
- if unable to resolve due to an invalid definition
-
withInfo
ResolvableTrade<T> withInfo(PortfolioItemInfo info)
Returns an instance with the specified info.- Specified by:
withInfo
in interfacePortfolioItem
- Specified by:
withInfo
in interfaceTrade
- Parameters:
info
- the new info- Returns:
- the instance with the specified info
-
-