public enum PriorityCode extends Enum<PriorityCode>
| Enum Constant and Description | 
|---|
| AVOID_AT_ALL_COSTS | 
| AVOID_IF_POSSIBLE | 
| BEST | 
| PREFER | 
| REACH_DEST | 
| UNCHANGED | 
| VERY_NICE | 
| WORST | 
| Modifier and Type | Method and Description | 
|---|---|
| static double | getFactor(int val)This method returns the PriorityCode.value in a range between 0 and 1 suitable for direct usage in a Weighting. | 
| int | getValue() | 
| static PriorityCode | valueOf(String name)Returns the enum constant of this type with the specified name. | 
| static PriorityCode[] | values()Returns an array containing the constants of this enum type, in
the order they are declared. | 
public static final PriorityCode WORST
public static final PriorityCode AVOID_AT_ALL_COSTS
public static final PriorityCode REACH_DEST
public static final PriorityCode AVOID_IF_POSSIBLE
public static final PriorityCode UNCHANGED
public static final PriorityCode PREFER
public static final PriorityCode VERY_NICE
public static final PriorityCode BEST
public static PriorityCode[] values()
for (PriorityCode c : PriorityCode.values()) System.out.println(c);
public static PriorityCode 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()
public static double getFactor(int val)
Copyright © 2012–2020. All rights reserved.