Class RatesCurveInputsMarketDataFunction
- java.lang.Object
-
- com.opengamma.strata.measure.rate.RatesCurveInputsMarketDataFunction
-
- All Implemented Interfaces:
MarketDataFunction<RatesCurveInputs,RatesCurveInputsId>
public final class RatesCurveInputsMarketDataFunction extends Object implements MarketDataFunction<RatesCurveInputs,RatesCurveInputsId>
Market data function that builds the input data used when calibrating a curve.
-
-
Constructor Summary
Constructors Constructor Description RatesCurveInputsMarketDataFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MarketDataBox<RatesCurveInputs>
build(RatesCurveInputsId id, MarketDataConfig marketDataConfig, ScenarioMarketData marketData, ReferenceData refData)
Builds and returns the market data identified by the ID.Class<RatesCurveInputsId>
getMarketDataIdType()
Returns the type of market data ID this function can handle.MarketDataRequirements
requirements(RatesCurveInputsId 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(RatesCurveInputsId 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<RatesCurveInputs,RatesCurveInputsId>
- 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<RatesCurveInputs> build(RatesCurveInputsId 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<RatesCurveInputs,RatesCurveInputsId>
- 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<RatesCurveInputsId> getMarketDataIdType()
Description copied from interface:MarketDataFunction
Returns the type of market data ID this function can handle.- Specified by:
getMarketDataIdType
in interfaceMarketDataFunction<RatesCurveInputs,RatesCurveInputsId>
- Returns:
- the type of market data ID this function can handle
-
-