Package org.powertac.common.msg
Class DistributionReport
java.lang.Object
org.powertac.common.state.XStreamStateLoggable
org.powertac.common.msg.DistributionReport
@Domain(fields={"timeslot","totalConsumption","totalProduction"}) public class DistributionReport extends XStreamStateLoggable
Reports total consumption and total production in kwh across all customers
in a given timeslot. These are absolute (positive) values.
- Author:
- John Collins
-
Field Summary
Fields Modifier and Type Field Description protected longid -
Constructor Summary
Constructors Constructor Description DistributionReport()Dummy constructor.DistributionReport(int timeslot, double consumption, double production) -
Method Summary
Modifier and Type Method Description longgetId()intgetTimeslot()doublegetTotalConsumption()doublegetTotalProduction()
-
Field Details
-
id
@XStreamAsAttribute protected long id
-
-
Constructor Details
-
DistributionReport
public DistributionReport()Dummy constructor. -
DistributionReport
public DistributionReport(int timeslot, double consumption, double production)
-
-
Method Details
-
getId
public long getId() -
getTimeslot
public int getTimeslot() -
getTotalConsumption
public double getTotalConsumption() -
getTotalProduction
public double getTotalProduction()
-