com.google.code.jetm.reporting.xml
Class XmlAggregate

java.lang.Object
  extended by com.google.code.jetm.reporting.xml.XmlAggregate
All Implemented Interfaces:
etm.core.aggregation.Aggregate

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

An implementation of Aggregate to be used to marshal and unmarshal to and from XML.

Author:
jrh3k5

Constructor Summary
XmlAggregate(double min, double max, double total, long measurements, String name)
          Create an aggregate.
 
Method Summary
 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

XmlAggregate

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

Parameters:
min - The minimum amount of time that occurred within a measurement collection.
max - The maximum amount of time that occurred within a measurement collection.
total - The total amount of time collected.
measurements - The number of times the measurement was collected.
name - The name of the measurement.
Method Detail

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.