Class FxOptionVolatilitiesMarketDataFunction
- java.lang.Object
-
- com.opengamma.strata.measure.fxopt.FxOptionVolatilitiesMarketDataFunction
-
- All Implemented Interfaces:
MarketDataFunction<FxOptionVolatilities,FxOptionVolatilitiesId>
public class FxOptionVolatilitiesMarketDataFunction extends Object implements MarketDataFunction<FxOptionVolatilities,FxOptionVolatilitiesId>
Market data function that builds FX option volatilities.This function creates FX option volatilities, turning
FxOptionVolatilitiesId
intoFxOptionVolatilities
.
-
-
Constructor Summary
Constructors Constructor Description FxOptionVolatilitiesMarketDataFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MarketDataBox<FxOptionVolatilities>
build(FxOptionVolatilitiesId id, MarketDataConfig marketDataConfig, ScenarioMarketData marketData, ReferenceData refData)
Builds and returns the market data identified by the ID.Class<FxOptionVolatilitiesId>
getMarketDataIdType()
Returns the type of market data ID this function can handle.MarketDataRequirements
requirements(FxOptionVolatilitiesId id, MarketDataConfig marketDataConfig)
Returns requirements representing the data needed to build the item of market data identified by the ID.
-
-
-
Method Detail
-
requirements
public MarketDataRequirements requirements(FxOptionVolatilitiesId id, MarketDataConfig marketDataConfig)
Description copied from interface:MarketDataFunction
Returns requirements representing the data needed to build the item of market data identified by the ID.- Specified by:
requirements
in interfaceMarketDataFunction<FxOptionVolatilities,FxOptionVolatilitiesId>
- Parameters:
id
- an ID identifying an item of market datamarketDataConfig
- configuration specifying how market data values should be built- Returns:
- requirements representing the data needed to build the item of market data identified by the ID
-
build
public MarketDataBox<FxOptionVolatilities> build(FxOptionVolatilitiesId id, MarketDataConfig marketDataConfig, ScenarioMarketData marketData, ReferenceData refData)
Description copied from interface:MarketDataFunction
Builds and returns the market data identified by the ID.If the data cannot be built the result contains details of the problem.
- Specified by:
build
in interfaceMarketDataFunction<FxOptionVolatilities,FxOptionVolatilitiesId>
- Parameters:
id
- ID of the market data that should be builtmarketDataConfig
- configuration specifying how the market data should be builtmarketData
- a set of market data including any data required to build the requested datarefData
- the reference data- Returns:
- built market data, or details of the problems that prevented building
-
getMarketDataIdType
public Class<FxOptionVolatilitiesId> getMarketDataIdType()
Description copied from interface:MarketDataFunction
Returns the type of market data ID this function can handle.- Specified by:
getMarketDataIdType
in interfaceMarketDataFunction<FxOptionVolatilities,FxOptionVolatilitiesId>
- Returns:
- the type of market data ID this function can handle
-
-