public enum AccrualOnDefaultFormula extends Enum<AccrualOnDefaultFormula> implements NamedEnum
This specifies which formula is used in IsdaCdsProductPricer for computing the accrued payment on default.
The formula is 'original ISDA', 'Markit fix' or 'correct'.
| Enum Constant and Description |
|---|
CORRECT
The mathematically correct formula.
|
MARKIT_FIX
The correction proposed by Markit (v 1.8.2).
|
ORIGINAL_ISDA
The formula in v1.8.1 and below.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getOmega()
Gets the omega value.
|
static AccrualOnDefaultFormula |
of(String name)
Obtains an instance from the specified name.
|
String |
toString()
Returns the formatted name of the type.
|
static AccrualOnDefaultFormula |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AccrualOnDefaultFormula[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AccrualOnDefaultFormula ORIGINAL_ISDA
public static final AccrualOnDefaultFormula MARKIT_FIX
public static final AccrualOnDefaultFormula CORRECT
public static AccrualOnDefaultFormula[] values()
for (AccrualOnDefaultFormula c : AccrualOnDefaultFormula.values()) System.out.println(c);
public static AccrualOnDefaultFormula 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 AccrualOnDefaultFormula 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 double getOmega()
The omega value is used in IsdaCdsProductPricer.
public String toString()
toString in class Enum<AccrualOnDefaultFormula>Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.