public enum InvalidFuelStateBehavior extends Enum<InvalidFuelStateBehavior> implements Enumeration
enum
that will let a maneuver segment know what to do if an maneuver can not
be completed due to lack of fuel.Enum Constant and Description |
---|
DO_AS_MUCH_AS_POSSIBLE
Do as much of the delta-V as possible given how much fuel is available.
|
DO_FULL_DELTA_V
Do the entire delta-V regardless of how much fuel is available.
|
STOP_PROPAGATING
This will do as much of the maneuver as possible, and stop propagation.
|
THROW_EXCEPTION
Throw an exception if there is not enough fuel to perform the maneuver.
|
Modifier and Type | Method and Description |
---|---|
static InvalidFuelStateBehavior |
getDefault()
Get the enum constant that is considered to be the default.
|
static InvalidFuelStateBehavior |
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 InvalidFuelStateBehavior |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static InvalidFuelStateBehavior[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final InvalidFuelStateBehavior DO_FULL_DELTA_V
public static final InvalidFuelStateBehavior DO_AS_MUCH_AS_POSSIBLE
public static final InvalidFuelStateBehavior THROW_EXCEPTION
public static final InvalidFuelStateBehavior STOP_PROPAGATING
public static InvalidFuelStateBehavior[] values()
for (InvalidFuelStateBehavior c : InvalidFuelStateBehavior.values()) System.out.println(c);
public static InvalidFuelStateBehavior 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 InvalidFuelStateBehavior getFromValue(int value)
value
- a numeric value.@Nonnull public static InvalidFuelStateBehavior getDefault()