public enum FxSingleBarrierOptionMethod extends Enum<FxSingleBarrierOptionMethod> implements NamedEnum, CalculationParameter
This provides the ability to use different methods for pricing FX options. The Black and Trinomial-Tree 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.
|
TRINOMIAL_TREE
The Trinomial-Tree model.
|
| Modifier and Type | Method and Description |
|---|---|
Optional<CalculationParameter> |
filter(CalculationTarget target,
Measure measure) |
static FxSingleBarrierOptionMethod |
of(String name)
Obtains an instance from the specified name.
|
String |
toString()
Returns the formatted name of the type.
|
static FxSingleBarrierOptionMethod |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FxSingleBarrierOptionMethod[] |
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 FxSingleBarrierOptionMethod BLACK
BlackFxOptionVolatilities.public static final FxSingleBarrierOptionMethod TRINOMIAL_TREE
BlackFxOptionVolatilities.public static FxSingleBarrierOptionMethod[] values()
for (FxSingleBarrierOptionMethod c : FxSingleBarrierOptionMethod.values()) System.out.println(c);
public static FxSingleBarrierOptionMethod 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 FxSingleBarrierOptionMethod 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<FxSingleBarrierOptionMethod>Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.