Class FxOptionVolatilitiesDefinition
- java.lang.Object
-
- com.opengamma.strata.measure.fxopt.FxOptionVolatilitiesDefinition
-
- All Implemented Interfaces:
Serializable
,org.joda.beans.Bean
,org.joda.beans.ImmutableBean
public final class FxOptionVolatilitiesDefinition extends Object implements org.joda.beans.ImmutableBean, Serializable
The definition of how to build FX option volatilities.This stores an instance of specification
FxOptionVolatilitiesSpecification
which allows different kinds of volatility to be created.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FxOptionVolatilitiesDefinition.Meta
The meta-bean forFxOptionVolatilitiesDefinition
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
int
getParameterCount()
Gets the number of parameters.FxOptionVolatilitiesSpecification
getSpecification()
Gets the FX option volatility specification.int
hashCode()
static FxOptionVolatilitiesDefinition.Meta
meta()
The meta-bean forFxOptionVolatilitiesDefinition
.FxOptionVolatilitiesDefinition.Meta
metaBean()
static FxOptionVolatilitiesDefinition
of(FxOptionVolatilitiesSpecification specification)
Obtains an instance.String
toString()
FxOptionVolatilities
volatilities(ZonedDateTime valuationDateTime, DoubleArray parameters, ReferenceData refData)
Creates FX option volatilities.ImmutableList<QuoteId>
volatilitiesInputs()
Obtains the inputs required to create the FX option volatilities.
-
-
-
Method Detail
-
of
public static FxOptionVolatilitiesDefinition of(FxOptionVolatilitiesSpecification specification)
Obtains an instance.- Parameters:
specification
- the specification- Returns:
- the instance
-
volatilities
public FxOptionVolatilities volatilities(ZonedDateTime valuationDateTime, DoubleArray parameters, ReferenceData refData)
Creates FX option volatilities.The number and ordering of
parameters
must be coherent to those of nodes,#getNodes()
.- Parameters:
valuationDateTime
- the valuation date timeparameters
- the parametersrefData
- the reference data- Returns:
- the volatilities
-
volatilitiesInputs
public ImmutableList<QuoteId> volatilitiesInputs()
Obtains the inputs required to create the FX option volatilities.- Returns:
- the inputs
-
getParameterCount
public int getParameterCount()
Gets the number of parameters.- Returns:
- the number of parameters
-
meta
public static FxOptionVolatilitiesDefinition.Meta meta()
The meta-bean forFxOptionVolatilitiesDefinition
.- Returns:
- the meta-bean, not null
-
metaBean
public FxOptionVolatilitiesDefinition.Meta metaBean()
- Specified by:
metaBean
in interfaceorg.joda.beans.Bean
-
getSpecification
public FxOptionVolatilitiesSpecification getSpecification()
Gets the FX option volatility specification.- Returns:
- the value of the property, not null
-
-