Enum HeuristicMode
- All Implemented Interfaces:
Serializable
,Comparable<HeuristicMode>
,java.lang.constant.Constable
Represents the modes of heuristic application, defining different prioritizations or strategies
for pathfinding algorithms. This enum is typically used to influence the behavior or preference
when calculating paths in environments with various navigational constraints.
PERFORMANCE
: Optimizes the heuristic calculation for faster computations, potentially compromising the precision of the resultant path. This mode is suitable for scenarios where speed is a higher priority than path accuracy.PRECISION
: Optimizes the heuristic calculation for greater accuracy or realism in pathfinding, which may result in slower computations. This mode is ideal for applications where precise navigation is required.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic HeuristicMode
Returns the enum constant of this type with the specified name.static HeuristicMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
PERFORMANCE
-
PRECISION
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-