Enum Class Confidence
- All Implemented Interfaces:
Serializable, Comparable<Confidence>, Constable
How sure the analyser is that an
EstateFinding is right.-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionmin(Confidence other) The lower of two confidences.static ConfidenceReturns the enum constant of this class with the specified name.static Confidence[]values()Returns an array containing the constants of this enum class, in the order they are declared.doubleweight()The weight used when prioritising actions.
-
Enum Constant Details
-
LOW
Inferred from partial data or reference prices. -
MEDIUM
Based on live inventory, but with an assumption that matters (for example a reference price). -
HIGH
Based on live inventory, measured utilisation and live or contract prices.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
weight
public double weight()The weight used when prioritising actions.- Returns:
- 0.4 (LOW) to 1.0 (HIGH)
-
min
The lower of two confidences.- Parameters:
other- the other confidence- Returns:
- the lower one
-