public enum FxVanillaOptionMethod extends Enum<FxVanillaOptionMethod> implements NamedEnum, CalculationParameter
This provides the ability to use different methods for pricing FX options. The Black and Vanna-Volga methods are supported.
This enum implements CalculationParameter and is used by passing it
as an argument to CalculationRules. It provides the link between the
data that the function needs and the data that is available in ScenarioMarketData.
Implementations of this interface must be immutable.
| Enum Constant and Description |
|---|
BLACK
The Black (lognormal) model.
|
VANNA_VOLGA
The Vanna-Volga model.
|
| Modifier and Type | Method and Description |
|---|---|
Optional<CalculationParameter> |
filter(CalculationTarget target,
Measure measure) |
static FxVanillaOptionMethod |
of(String name)
Obtains an instance from the specified name.
|
String |
toString()
Returns the formatted name of the type.
|
static FxVanillaOptionMethod |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FxVanillaOptionMethod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOfqueryTypepublic static final FxVanillaOptionMethod BLACK
BlackFxOptionVolatilities.public static final FxVanillaOptionMethod VANNA_VOLGA
BlackFxOptionSmileVolatilities.public static FxVanillaOptionMethod[] values()
for (FxVanillaOptionMethod c : FxVanillaOptionMethod.values()) System.out.println(c);
public static FxVanillaOptionMethod valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static FxVanillaOptionMethod of(String name)
Parsing handles the mixed case form produced by toString() and
the upper and lower case variants of the enum constant name.
name - the name to parseIllegalArgumentException - if the name is not knownpublic Optional<CalculationParameter> filter(CalculationTarget target, Measure measure)
filter in interface CalculationParameterpublic String toString()
toString in class Enum<FxVanillaOptionMethod>Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.