com.google.code.jetm.maven.internal
Class SimpleAggregate

java.lang.Object
  extended by com.google.code.jetm.maven.internal.SimpleAggregate
All Implemented Interfaces:
etm.core.aggregation.Aggregate

public class SimpleAggregate
extends Object
implements etm.core.aggregation.Aggregate

A simple Aggregate bean implementation.

Author:
jrh3k5

Constructor Summary
SimpleAggregate(String name, double average, double min, double max, long measurements, double total)
          Create an aggregate.
 
Method Summary
 boolean equals(Object obj)
           
 double getAverage()
          
 Map<?,?> getChilds()
          
 double getMax()
          
 long getMeasurements()
          
 double getMin()
          
 String getName()
          
 double getTotal()
          
 boolean hasChilds()
          
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleAggregate

public SimpleAggregate(String name,
                       double average,
                       double min,
                       double max,
                       long measurements,
                       double total)
Create an aggregate.

Parameters:
name - The name of the aggregate.
average - The average of the measurements.
min - The lowest measurement.
max - The highest measurement.
measurements - The number of measurements.
total - The total of all measurements collected.
Method Detail

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

getAverage

public double getAverage()

Specified by:
getAverage in interface etm.core.aggregation.Aggregate

getChilds

public Map<?,?> getChilds()

Specified by:
getChilds in interface etm.core.aggregation.Aggregate

getMax

public double getMax()

Specified by:
getMax in interface etm.core.aggregation.Aggregate

getMeasurements

public long getMeasurements()

Specified by:
getMeasurements in interface etm.core.aggregation.Aggregate

getMin

public double getMin()

Specified by:
getMin in interface etm.core.aggregation.Aggregate

getName

public String getName()

Specified by:
getName in interface etm.core.aggregation.Aggregate

getTotal

public double getTotal()

Specified by:
getTotal in interface etm.core.aggregation.Aggregate

hasChilds

public boolean hasChilds()

Specified by:
hasChilds in interface etm.core.aggregation.Aggregate

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011. All Rights Reserved.