Package com.bayesserver
Enum VariableKind
- java.lang.Object
-
- java.lang.Enum<VariableKind>
-
- com.bayesserver.VariableKind
-
- All Implemented Interfaces:
Serializable
,Comparable<VariableKind>
public enum VariableKind extends Enum<VariableKind>
The kind of variable, such as Probability, Decision or Utility.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DECISION
A decision variable, which can be used for decision making based on utilities.FUNCTION
A function variable, whose expression is evaluated at query time, and can be based on other queries/functions.PROBABILITY
A standard probability variable.UTILITY
A utility variable, which can be used to encode utilities such as costs and profits.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static VariableKind
valueOf(String name)
Returns the enum constant of this type with the specified name.static VariableKind[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PROBABILITY
public static final VariableKind PROBABILITY
A standard probability variable.
-
DECISION
public static final VariableKind DECISION
A decision variable, which can be used for decision making based on utilities.
-
UTILITY
public static final VariableKind UTILITY
A utility variable, which can be used to encode utilities such as costs and profits.
-
FUNCTION
public static final VariableKind FUNCTION
A function variable, whose expression is evaluated at query time, and can be based on other queries/functions.
-
-
Method Detail
-
values
public static VariableKind[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (VariableKind c : VariableKind.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static VariableKind 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 nameNullPointerException
- if the argument is null
-
-