org.rhq.enterprise.server.measurement
Class MeasurementAggregate

java.lang.Object
  extended by org.rhq.enterprise.server.measurement.MeasurementAggregate
All Implemented Interfaces:
Serializable

public class MeasurementAggregate
extends Object
implements Serializable

Simple Java Bean to hold aggregate values

Author:
Heiko W. Rupp
See Also:
Serialized Form

Constructor Summary
MeasurementAggregate()
           
MeasurementAggregate(Double min, Double avg, Double max)
           
 
Method Summary
 Double getAvg()
           
 Double getMax()
           
 Double getMin()
           
 boolean isEmpty()
          Return true if the aggregate has "no real data" I.e.
 void setAvg(Double avg)
           
 void setMax(Double max)
           
 void setMin(Double min)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MeasurementAggregate

public MeasurementAggregate()

MeasurementAggregate

public MeasurementAggregate(Double min,
                            Double avg,
                            Double max)
Method Detail

getMin

public Double getMin()

setMin

public void setMin(Double min)

getAvg

public Double getAvg()

setAvg

public void setAvg(Double avg)

getMax

public Double getMax()

setMax

public void setMax(Double max)

toString

public String toString()
Overrides:
toString in class Object

isEmpty

public boolean isEmpty()
Return true if the aggregate has "no real data" I.e. when all values are Not A Number.

Returns:


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.