org.powertac.common.msg
Class DistributionReport

java.lang.Object
  extended by org.powertac.common.msg.DistributionReport

public class DistributionReport
extends Object

Reports total consumption and total production in kwh across all customers in a given timeslot. These are absolute (positive) values.

Author:
John Collins

Constructor Summary
DistributionReport()
          Constructed empty.
 
Method Summary
 void addConsumption(double kwh)
          Adds to the total consumption.
 void addProduction(double kwh)
          Adds to production
 double getTotalConsumption()
           
 double getTotalProduction()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DistributionReport

public DistributionReport()
Constructed empty. Call addProduction and addConsumption to fill it in.

Method Detail

addConsumption

public void addConsumption(double kwh)
Adds to the total consumption. If kwh is coming from a source that uses negative values for consumption, then the caller must negate the value.


getTotalConsumption

public double getTotalConsumption()

addProduction

public void addProduction(double kwh)
Adds to production


getTotalProduction

public double getTotalProduction()


Copyright © 2013. All Rights Reserved.