Enum LocalizedODEFormats

java.lang.Object
java.lang.Enum<LocalizedODEFormats>
org.hipparchus.ode.LocalizedODEFormats
All Implemented Interfaces:
Serializable, Comparable<LocalizedODEFormats>, java.lang.constant.Constable, Localizable

public enum LocalizedODEFormats extends Enum<LocalizedODEFormats> implements Localizable
Enumeration for localized messages formats used in exceptions messages.

The constants in this enumeration represent the available formats as localized strings. These formats are intended to be localized using simple properties files, using the constant name as the key and the property value as the message format. The source English format is provided in the constants themselves to serve both as a reminder for developers to understand the parameters needed by each format, as a basis for translators to create localized properties files, and as a default format if some translation is missing.

  • Enum Constant Details

    • HOLE_BETWEEN_MODELS_TIME_RANGES

      public static final LocalizedODEFormats HOLE_BETWEEN_MODELS_TIME_RANGES
      HOLE_BETWEEN_MODELS_TIME_RANGES.
    • INTEGRATION_METHOD_NEEDS_AT_LEAST_TWO_PREVIOUS_POINTS

      public static final LocalizedODEFormats INTEGRATION_METHOD_NEEDS_AT_LEAST_TWO_PREVIOUS_POINTS
      INTEGRATION_METHOD_NEEDS_AT_LEAST_TWO_PREVIOUS_POINTS.
    • MINIMAL_STEPSIZE_REACHED_DURING_INTEGRATION

      public static final LocalizedODEFormats MINIMAL_STEPSIZE_REACHED_DURING_INTEGRATION
      MINIMAL_STEPSIZE_REACHED_DURING_INTEGRATION.
    • MULTISTEP_STARTER_STOPPED_EARLY

      public static final LocalizedODEFormats MULTISTEP_STARTER_STOPPED_EARLY
      MULTISTEP_STARTER_STOPPED_EARLY.
    • PROPAGATION_DIRECTION_MISMATCH

      public static final LocalizedODEFormats PROPAGATION_DIRECTION_MISMATCH
      PROPAGATION_DIRECTION_MISMATCH.
    • TOO_SMALL_INTEGRATION_INTERVAL

      public static final LocalizedODEFormats TOO_SMALL_INTEGRATION_INTERVAL
      TOO_SMALL_INTEGRATION_INTERVAL.
    • UNKNOWN_PARAMETER

      public static final LocalizedODEFormats UNKNOWN_PARAMETER
      UNKNOWN_PARAMETER.
    • UNMATCHED_ODE_IN_EXPANDED_SET

      public static final LocalizedODEFormats UNMATCHED_ODE_IN_EXPANDED_SET
      UNMATCHED_ODE_IN_EXPANDED_SET.
    • NAN_APPEARING_DURING_INTEGRATION

      public static final LocalizedODEFormats NAN_APPEARING_DURING_INTEGRATION
      NAN_APPEARING_DURING_INTEGRATION.
    • FIND_ROOT

      public static final LocalizedODEFormats FIND_ROOT
      FIND_ROOT.
  • Method Details

    • values

      public static LocalizedODEFormats[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static LocalizedODEFormats valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getSourceString

      public String getSourceString()
      Gets the source (non-localized) string.
      Specified by:
      getSourceString in interface Localizable
      Returns:
      the source string.
    • getLocalizedString

      public String getLocalizedString(Locale locale)
      Gets the localized string.
      Specified by:
      getLocalizedString in interface Localizable
      Parameters:
      locale - locale into which to get the string.
      Returns:
      the localized string or the source string if no localized version is available.