Package com.bayesserver.data
Enum ColumnValueType
- java.lang.Object
-
- java.lang.Enum<ColumnValueType>
-
- com.bayesserver.data.ColumnValueType
-
- All Implemented Interfaces:
Serializable
,Comparable<ColumnValueType>
public enum ColumnValueType extends Enum<ColumnValueType>
Specifies the type of data in a column.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INDEX
The column contains the zero based index of a discrete variable state.NAME
The column contains the name of a discrete variable state.VALUE
The column contains the value of a continuous variable or a value to match to a discreteState.getValue()
.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ColumnValueType
valueOf(String name)
Returns the enum constant of this type with the specified name.static ColumnValueType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
VALUE
public static final ColumnValueType VALUE
The column contains the value of a continuous variable or a value to match to a discreteState.getValue()
. If a variable is discretized, this option can be used to match continuous values to the correct discreteInterval
in aState.getValue()
.
-
INDEX
public static final ColumnValueType INDEX
The column contains the zero based index of a discrete variable state.
-
NAME
public static final ColumnValueType NAME
The column contains the name of a discrete variable state.
-
-
Method Detail
-
values
public static ColumnValueType[] 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 (ColumnValueType c : ColumnValueType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ColumnValueType 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
-
-