T- the type of the market data built by this class
I- the type of the market data ID handled by this class
public interface MarketDataFunction<T,I extends MarketDataId<? extends T>>
A function implementation produces a single type of market data and consumes a single type of market data ID.
|Modifier and Type||Method and Description|
Builds and returns the market data identified by the ID.
Returns the type of market data ID this function can handle.
Returns requirements representing the data needed to build the item of market data identified by the ID.
MarketDataRequirements requirements(I id, MarketDataConfig marketDataConfig)
id- an ID identifying an item of market data
marketDataConfig- configuration specifying how market data values should be built
MarketDataBox<T> build(I id, MarketDataConfig marketDataConfig, ScenarioMarketData marketData, ReferenceData refData)
If the data cannot be built the result contains details of the problem.
id- ID of the market data that should be built
marketDataConfig- configuration specifying how the market data should be built
marketData- a set of market data including any data required to build the requested data
refData- the reference data
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.