public interface SwaptionScenarioMarketData
This interface exposes the market data necessary for pricing a swaption.
Implementations of this interface must be immutable.
| Modifier and Type | Method and Description |
|---|---|
SwaptionMarketDataLookup |
getLookup()
Gets the lookup that provides access to swaption volatilities.
|
ScenarioMarketData |
getMarketData()
Gets the market data.
|
int |
getScenarioCount()
Gets the number of scenarios.
|
SwaptionMarketData |
scenario(int scenarioIndex)
Returns market data for a single scenario.
|
SwaptionScenarioMarketData |
withMarketData(ScenarioMarketData marketData)
Returns a copy of this instance with the specified market data.
|
SwaptionMarketDataLookup getLookup()
ScenarioMarketData getMarketData()
SwaptionScenarioMarketData withMarketData(ScenarioMarketData marketData)
marketData - the market data to useint getScenarioCount()
SwaptionMarketData scenario(int scenarioIndex)
This returns a view of the market data for the specified scenario.
scenarioIndex - the scenario indexIndexOutOfBoundsException - if the scenario index is invalidCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.