public enum MaximumDurationBehavior extends Enum<MaximumDurationBehavior> implements Enumeration
NumericalPropagatorSegment
should use when its
MaximumDuration
(get
/ set
) is reached during propagation.Enum Constant and Description |
---|
IGNORE_MAXIMUM_DURATION
|
STOP_AND_CONTINUE_TO_NEXT_SEGMENT
This will treat the
MaximumDuration (get / set ) as a normal
StoppingCondition in that the propagation of the
NumericalPropagatorSegment will stop and the next SegmentPropagator
will continue propagating. |
STOP_AND_RETURN
This will stop the propagation of the
NumericalPropagatorSegment and
immediately return the results computed up to this point. |
THROW
This will throw a
StoppedOnMaximumDurationException if the propagation of the
SegmentPropagator exceeds its MaximumDuration (get / set ). |
Modifier and Type | Method and Description |
---|---|
static MaximumDurationBehavior |
getDefault()
Get the enum constant that is considered to be the default.
|
static MaximumDurationBehavior |
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 MaximumDurationBehavior |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MaximumDurationBehavior[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MaximumDurationBehavior STOP_AND_RETURN
NumericalPropagatorSegment
and
immediately return the results computed up to this point. No further propagation
will continue.public static final MaximumDurationBehavior STOP_AND_CONTINUE_TO_NEXT_SEGMENT
MaximumDuration
(get
/ set
) as a normal
StoppingCondition
in that the propagation of the
NumericalPropagatorSegment
will stop and the next SegmentPropagator
will continue propagating.public static final MaximumDurationBehavior THROW
StoppedOnMaximumDurationException
if the propagation of the
SegmentPropagator
exceeds its MaximumDuration
(get
/ set
).public static final MaximumDurationBehavior IGNORE_MAXIMUM_DURATION
public static MaximumDurationBehavior[] values()
for (MaximumDurationBehavior c : MaximumDurationBehavior.values()) System.out.println(c);
public static MaximumDurationBehavior 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 MaximumDurationBehavior getFromValue(int value)
value
- a numeric value.@Nonnull public static MaximumDurationBehavior getDefault()