Class BlackFxOptionSmileVolatilitiesSpecification
- java.lang.Object
-
- com.opengamma.strata.measure.fxopt.BlackFxOptionSmileVolatilitiesSpecification
-
- All Implemented Interfaces:
FxOptionVolatilitiesSpecification,Serializable,org.joda.beans.Bean,org.joda.beans.ImmutableBean
public final class BlackFxOptionSmileVolatilitiesSpecification extends Object implements FxOptionVolatilitiesSpecification, org.joda.beans.ImmutableBean, Serializable
The specification of how to build FX option volatilities.This is the specification for a single volatility object,
BlackFxOptionSmileVolatilities.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBlackFxOptionSmileVolatilitiesSpecification.BuilderThe bean-builder forBlackFxOptionSmileVolatilitiesSpecification.static classBlackFxOptionSmileVolatilitiesSpecification.MetaThe meta-bean forBlackFxOptionSmileVolatilitiesSpecification.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BlackFxOptionSmileVolatilitiesSpecification.Builderbuilder()Returns a builder used to create an instance of the bean.booleanequals(Object obj)CurrencyPairgetCurrencyPair()Gets the currency pair that the volatilities are for.DayCountgetDayCount()Gets the day count convention used for the expiry.FxOptionVolatilitiesNamegetName()Gets the name of the volatilities.ImmutableList<FxOptionVolatilitiesNode>getNodes()Gets the nodes in the FX option volatilities.CurveExtrapolatorgetStrikeExtrapolatorLeft()Gets the left extrapolator used in the strike dimension.CurveExtrapolatorgetStrikeExtrapolatorRight()Gets the right extrapolator used in the strike dimension.CurveInterpolatorgetStrikeInterpolator()Gets the interpolator used in the strike dimension.CurveExtrapolatorgetTimeExtrapolatorLeft()Gets the left extrapolator used in the time dimension.CurveExtrapolatorgetTimeExtrapolatorRight()Gets the right extrapolator used in the time dimension.CurveInterpolatorgetTimeInterpolator()Gets the interpolator used in the time dimension.inthashCode()static BlackFxOptionSmileVolatilitiesSpecification.Metameta()The meta-bean forBlackFxOptionSmileVolatilitiesSpecification.BlackFxOptionSmileVolatilitiesSpecification.MetametaBean()BlackFxOptionSmileVolatilitiesSpecification.BuildertoBuilder()Returns a builder that allows this bean to be mutated.StringtoString()BlackFxOptionSmileVolatilitiesvolatilities(ZonedDateTime valuationDateTime, DoubleArray parameters, ReferenceData refData)Creates FX option volatilities.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.opengamma.strata.measure.fxopt.FxOptionVolatilitiesSpecification
getParameterCount, volatilitiesInputs
-
-
-
-
Method Detail
-
volatilities
public BlackFxOptionSmileVolatilities volatilities(ZonedDateTime valuationDateTime, DoubleArray parameters, ReferenceData refData)
Description copied from interface:FxOptionVolatilitiesSpecificationCreates FX option volatilities.The number and ordering of
parametersmust be coherent to those of nodes,#getNodes().- Specified by:
volatilitiesin interfaceFxOptionVolatilitiesSpecification- Parameters:
valuationDateTime- the valuation date timeparameters- the parametersrefData- the reference data- Returns:
- the volatilities
-
meta
public static BlackFxOptionSmileVolatilitiesSpecification.Meta meta()
The meta-bean forBlackFxOptionSmileVolatilitiesSpecification.- Returns:
- the meta-bean, not null
-
builder
public static BlackFxOptionSmileVolatilitiesSpecification.Builder builder()
Returns a builder used to create an instance of the bean.- Returns:
- the builder, not null
-
metaBean
public BlackFxOptionSmileVolatilitiesSpecification.Meta metaBean()
- Specified by:
metaBeanin interfaceorg.joda.beans.Bean
-
getName
public FxOptionVolatilitiesName getName()
Gets the name of the volatilities.- Specified by:
getNamein interfaceFxOptionVolatilitiesSpecification- Returns:
- the value of the property, not null
-
getCurrencyPair
public CurrencyPair getCurrencyPair()
Gets the currency pair that the volatilities are for.- Specified by:
getCurrencyPairin interfaceFxOptionVolatilitiesSpecification- Returns:
- the value of the property, not null
-
getDayCount
public DayCount getDayCount()
Gets the day count convention used for the expiry.- Returns:
- the value of the property, not null
-
getNodes
public ImmutableList<FxOptionVolatilitiesNode> getNodes()
Gets the nodes in the FX option volatilities.The nodes are used to find the quotes and build the volatilities.
- Specified by:
getNodesin interfaceFxOptionVolatilitiesSpecification- Returns:
- the value of the property, not null
-
getTimeInterpolator
public CurveInterpolator getTimeInterpolator()
Gets the interpolator used in the time dimension.- Returns:
- the value of the property, not null
-
getTimeExtrapolatorLeft
public CurveExtrapolator getTimeExtrapolatorLeft()
Gets the left extrapolator used in the time dimension.- Returns:
- the value of the property, not null
-
getTimeExtrapolatorRight
public CurveExtrapolator getTimeExtrapolatorRight()
Gets the right extrapolator used in the time dimension.- Returns:
- the value of the property, not null
-
getStrikeInterpolator
public CurveInterpolator getStrikeInterpolator()
Gets the interpolator used in the strike dimension.- Returns:
- the value of the property, not null
-
getStrikeExtrapolatorLeft
public CurveExtrapolator getStrikeExtrapolatorLeft()
Gets the left extrapolator used in the strike dimension.- Returns:
- the value of the property, not null
-
getStrikeExtrapolatorRight
public CurveExtrapolator getStrikeExtrapolatorRight()
Gets the right extrapolator used in the strike dimension.- Returns:
- the value of the property, not null
-
toBuilder
public BlackFxOptionSmileVolatilitiesSpecification.Builder toBuilder()
Returns a builder that allows this bean to be mutated.- Returns:
- the mutable builder, not null
-
-