- All Implemented Interfaces:
Serializable, Comparable<ConsolFun>, java.lang.constant.Constable
Enumeration of available consolidation functions. Note that data aggregation inevitably leads to loss of precision and information. The trick is to pick the aggregate function such that the interesting properties of your data are kept across the aggregation process.
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E>Enum Constant Summary
Enum ConstantsConstructor Summary
ConstructorsMethod Summary
Modifier and TypeMethodDescriptionabstract VariableCreates the variable that applies this consolidation function.static ConsolFunReturns the enum constant of this class with the specified name.static ConsolFun[]values()Returns an array containing the constants of this enum class, in the order they are declared.
Enum Constant Details
AVERAGE
The average of the data points is stored.MIN
The smallest of the data points is stored.MAX
The largest of the data points is stored.LAST
The last data point is used.FIRST
The fist data point is used.TOTAL
The total of the data points is stored.
Constructor Details
ConsolFun
private ConsolFun()
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
getVariable
Creates the variable that applies this consolidation function.- Returns:
- the Variable implementation that applies this consolidation function