com.google.code.jetm.maven.data
Class AggregateSummary

java.lang.Object
  extended by com.google.code.jetm.maven.data.AggregateSummary
All Implemented Interfaces:
etm.core.aggregation.Aggregate, Comparable<AggregateSummary>

public class AggregateSummary
extends Object
implements etm.core.aggregation.Aggregate, Comparable<AggregateSummary>

A bean to store summary of aggregate data.

Author:
jrh3k5

Constructor Summary
AggregateSummary(String name)
          Create a summary.
 
Method Summary
 void add(etm.core.aggregation.Aggregate aggregate)
          Add an aggregate to the summary.
 int compareTo(AggregateSummary o)
          
 double getAverage()
          
 Map getChilds()
          
 double getMax()
          
 long getMeasurements()
          
 double getMin()
          
 String getName()
          
 double getTotal()
          
 boolean hasChilds()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AggregateSummary

public AggregateSummary(String name)
Create a summary.

Parameters:
name - The name of the summary.
Method Detail

add

public void add(etm.core.aggregation.Aggregate aggregate)
Add an aggregate to the summary.

Parameters:
aggregate - The Aggregate to be added to the summary.

compareTo

public int compareTo(AggregateSummary o)

Specified by:
compareTo in interface Comparable<AggregateSummary>

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


Copyright © 2011. All Rights Reserved.