lime.motes
Class AggregationOptions

java.lang.Object
  extended bylime.motes.AggregationOptions
All Implemented Interfaces:
IAggregationOptions

public class AggregationOptions
extends java.lang.Object
implements IAggregationOptions

This first implementation of the IAggregationOptions interface allows the user to specify the range of epochs the aggregated request refers to and the type of aggregated request.

Version:
1.1
Author:
Carlo Curino, Matteo Giani, Marco Giorgetta, Alessandro Giusti

Field Summary
static int AVERAGE
          Constant defining the operations.
private  int delta_epoch_from
          How many epochs ago the relevant interval starts.
private  int delta_epoch_to
          How many epochs ago the relevant interval stops.
static int MAXIMUM
          Constant defining the operations.
static int MEDIAN
          Constant defining the operations.
static int MINIMUM
          Constant defining the operations.
static int MODE
          Constant defining the operations.
private  int type
          The type of the aggregation, among the ones defined above.
 
Constructor Summary
AggregationOptions(int delta_epoch_from, int delta_epoch_to, int type_of_aggr)
          Public constructor which builds the options object.
 
Method Summary
 int getDelta_epoch_from()
          Getter for the attribute.
 int getDelta_epoch_to()
          Getter for the attribute.
 int getType()
          Getter for the attribute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AVERAGE

public static final int AVERAGE
Constant defining the operations.

See Also:
Constant Field Values

MAXIMUM

public static final int MAXIMUM
Constant defining the operations.

See Also:
Constant Field Values

MINIMUM

public static final int MINIMUM
Constant defining the operations.

See Also:
Constant Field Values

MODE

public static final int MODE
Constant defining the operations.

See Also:
Constant Field Values

MEDIAN

public static final int MEDIAN
Constant defining the operations.

See Also:
Constant Field Values

delta_epoch_from

private int delta_epoch_from
How many epochs ago the relevant interval starts.


delta_epoch_to

private int delta_epoch_to
How many epochs ago the relevant interval stops.


type

private int type
The type of the aggregation, among the ones defined above.

Constructor Detail

AggregationOptions

public AggregationOptions(int delta_epoch_from,
                          int delta_epoch_to,
                          int type_of_aggr)
Public constructor which builds the options object.

Parameters:
delta_epoch_from -
delta_epoch_to -
type_of_aggr -
Method Detail

getDelta_epoch_from

public int getDelta_epoch_from()
Getter for the attribute.

Returns:
how many epochs ago the relevant interval (i.e. the interval on which aggregation is performed) starts.

getDelta_epoch_to

public int getDelta_epoch_to()
Getter for the attribute.

Returns:
how many epochs ago the relevant interval (i.e. the interval on which aggregation is performed) stops.

getType

public int getType()
Getter for the attribute.

Returns:
the type of aggregation performed.