Interface FxOptionVolatilitiesSpecification
-
- All Known Implementing Classes:
BlackFxOptionInterpolatedNodalSurfaceVolatilitiesSpecification,BlackFxOptionSmileVolatilitiesSpecification
public interface FxOptionVolatilitiesSpecificationThe specification of how to build FX option volatilities.This is the specification for a single volatility object,
FxOptionVolatilities. Each implementation of this interface must have the ability to create an instance of the respective implementation ofFxOptionVolatilities.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CurrencyPairgetCurrencyPair()Gets the currency pair.FxOptionVolatilitiesNamegetName()Gets the name of a set of FX option volatilities.ImmutableList<FxOptionVolatilitiesNode>getNodes()Gets the volatilities nodes.default intgetParameterCount()Gets the number of parameters.FxOptionVolatilitiesvolatilities(ZonedDateTime valuationDateTime, DoubleArray parameters, ReferenceData refData)Creates FX option volatilities.default ImmutableList<QuoteId>volatilitiesInputs()Obtains the inputs required to create the FX option volatilities.
-
-
-
Method Detail
-
getName
FxOptionVolatilitiesName getName()
Gets the name of a set of FX option volatilities.- Returns:
- the name
-
getCurrencyPair
CurrencyPair getCurrencyPair()
Gets the currency pair.- Returns:
- the currency pair
-
getNodes
ImmutableList<FxOptionVolatilitiesNode> getNodes()
Gets the volatilities nodes.- Returns:
- the nodes
-
volatilities
FxOptionVolatilities volatilities(ZonedDateTime valuationDateTime, DoubleArray parameters, ReferenceData refData)
Creates FX option volatilities.The number and ordering of
parametersmust be coherent to those of nodes,#getNodes().- Parameters:
valuationDateTime- the valuation date timeparameters- the parametersrefData- the reference data- Returns:
- the volatilities
-
volatilitiesInputs
default ImmutableList<QuoteId> volatilitiesInputs()
Obtains the inputs required to create the FX option volatilities.- Returns:
- the inputs
-
getParameterCount
default int getParameterCount()
Gets the number of parameters.- Returns:
- the number of parameters
-
-