uk.ac.soton.itinnovation.grid.service.types
Class InstantaneousRateReport

java.lang.Object
  extended by uk.ac.soton.itinnovation.grid.service.types.Usage
      extended by uk.ac.soton.itinnovation.grid.service.types.InstantaneousRateReport

public class InstantaneousRateReport
extends Usage

This reports on the incremental change in the rate of usage of a metric.


Constructor Summary
InstantaneousRateReport()
           
InstantaneousRateReport(Calendar time, double rate)
          Partial constructor.
InstantaneousRateReport(UsageReport r, double currentRate)
          Construct an InstantaneousRateReport from a SerializableRateReport.
 
Method Summary
 double getRate()
           
 Calendar getTime()
           
 void setRate(double argRate)
           
 void setTime(Calendar argTime)
           
 
Methods inherited from class uk.ac.soton.itinnovation.grid.service.types.Usage
getId, getMetric, setId, setMetric
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InstantaneousRateReport

public InstantaneousRateReport()

InstantaneousRateReport

public InstantaneousRateReport(UsageReport r,
                               double currentRate)
Construct an InstantaneousRateReport from a SerializableRateReport. As the SerializableRateReport indicates an absolute rate, and the InstantaneousRateReport is an incremental rate, we need to pass in the known rate at the time of the report as well, to adjust the rate value.


InstantaneousRateReport

public InstantaneousRateReport(Calendar time,
                               double rate)
Partial constructor.

Method Detail

getTime

public Calendar getTime()

setTime

public void setTime(Calendar argTime)

getRate

public double getRate()

setRate

public void setRate(double argRate)


Copyright © 2001-2007 University of Southampton IT Innovation Centre. All Rights Reserved.