public static enum DijkstraMap.Measurement extends Enum<DijkstraMap.Measurement>
Enum Constant and Description |
---|
CHEBYSHEV
The distance it takes when diagonal movement costs the same as
cardinal movement.
|
EUCLIDEAN
The distance it takes as the crow flies.
|
MANHATTAN
The distance it takes when only the four primary directions can be
moved in.
|
Modifier and Type | Method and Description |
---|---|
static DijkstraMap.Measurement |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DijkstraMap.Measurement[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DijkstraMap.Measurement MANHATTAN
public static final DijkstraMap.Measurement CHEBYSHEV
public static final DijkstraMap.Measurement EUCLIDEAN
public static DijkstraMap.Measurement[] values()
for (DijkstraMap.Measurement c : DijkstraMap.Measurement.values()) System.out.println(c);
public static DijkstraMap.Measurement 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 nullCopyright © 2012–2016. All rights reserved.