TUM CCSM Commons

edu.tum.cs.commons.math
Enum EAggregationStrategy

java.lang.Object
  extended by java.lang.Enum<EAggregationStrategy>
      extended by edu.tum.cs.commons.math.EAggregationStrategy
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<EAggregationStrategy>

public enum EAggregationStrategy
extends java.lang.Enum<EAggregationStrategy>

Enumeration for different aggregation strategies.

Version:
$Rev: 27961 $
Author:
deissenb, $Author: deissenb $
Rating:
GREEN Hash: C8D121A18760092443B22D4224237E46

Enum Constant Summary
MAX
          Maximum aggregation, see MaxAggregator.
MEAN
          Mean aggregation, see MeanAggregator.
MEDIAN
          Median aggregation, see MedianAggregator.
MIN
          Minimum aggregation, see MinAggregator.
SUM
          Sum aggregation, see SumAggregator.
 
Method Summary
 IAggregator getAggregator()
          Get aggregator.
static EAggregationStrategy valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static EAggregationStrategy[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

SUM

public static final EAggregationStrategy SUM
Sum aggregation, see SumAggregator.


MAX

public static final EAggregationStrategy MAX
Maximum aggregation, see MaxAggregator.


MIN

public static final EAggregationStrategy MIN
Minimum aggregation, see MinAggregator.


MEAN

public static final EAggregationStrategy MEAN
Mean aggregation, see MeanAggregator.


MEDIAN

public static final EAggregationStrategy MEDIAN
Median aggregation, see MedianAggregator.

Method Detail

values

public static EAggregationStrategy[] 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 (EAggregationStrategy c : EAggregationStrategy.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static EAggregationStrategy valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getAggregator

public IAggregator getAggregator()
Get aggregator.


TUM CCSM Commons

TUM CCSM Commons - 2.7