public enum AccuracyCalculationPersona extends Enum<AccuracyCalculationPersona> implements Enumeration
Enum Constant and Description |
---|
DILIGENT
Diligent persona means the navigation accuracy calculation will try to provide an accuracy answer even
if data for some of the requested satellites is missing.
|
LAZY
Lazy persona means the navigation accuracy calculation will not try to provide an accuracy answer if it encounters missing data
for a satellite.
|
Modifier and Type | Method and Description |
---|---|
static AccuracyCalculationPersona |
getDefault()
Get the enum constant that is considered to be the default.
|
static AccuracyCalculationPersona |
getFromValue(int value)
Get the enum constant that is associated with the given numeric value.
|
int |
getValue()
Get the numeric value associated with this enum constant.
|
static AccuracyCalculationPersona |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AccuracyCalculationPersona[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AccuracyCalculationPersona DILIGENT
public static final AccuracyCalculationPersona LAZY
DataUnavailableException
.
If there are too few satellites to determine a solution, an IllegalStateException
will be thrown.public static AccuracyCalculationPersona[] values()
for (AccuracyCalculationPersona c : AccuracyCalculationPersona.values()) System.out.println(c);
public static AccuracyCalculationPersona 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 int getValue()
getValue
in interface Enumeration
@Nonnull public static AccuracyCalculationPersona getFromValue(int value)
value
- a numeric value.@Nonnull public static AccuracyCalculationPersona getDefault()