• 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
Modifier and Type Method Description
T resolve​(ReferenceData refData)
Resolves this trade using the specified reference data.
ResolvableTrade<T> withInfo​(TradeInfo info)
Returns an instance with the specified info.
• ### Methods inherited from interface com.opengamma.strata.product.PortfolioItem

getId
• ### Methods inherited from interface com.opengamma.strata.product.Trade

getInfo, summarize
• ### 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 resulting ResolvedTrade 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 interface Resolvable<T extends ResolvedTrade>
Parameters:
refData - the reference data to use when resolving
Returns:
ReferenceDataNotFoundException - if an identifier cannot be resolved in the reference data
java.lang.RuntimeException - if unable to resolve due to an invalid definition
ResolvableTrade<T> withInfo​(TradeInfo info)
withInfo in interface Trade
info - the new info