Package org.powertac.common.msg
Class BalanceReport
java.lang.Object
org.powertac.common.msg.BalanceReport
@Domain(fields={"timeslotIndex","newImbalance"}) public class BalanceReport extends Object
Reports total net imbalance for a given timeslot, in kWh. The value is
positive for surplus (needing down-regulation), negative for deficit
(needing up-regulation).
- Author:
- John Collins
-
Constructor Summary
Constructors Constructor Description BalanceReport(int timeslotIndex, double value)Constructed as balanced. -
Method Summary
Modifier and Type Method Description longgetId()Returns the id of this instancedoublegetNetImbalance()intgetTimeslotIndex()
-
Constructor Details
-
BalanceReport
public BalanceReport(int timeslotIndex, double value)Constructed as balanced. Call addImbalance to fill it in.
-
-
Method Details
-
getId
public long getId()Returns the id of this instance -
getNetImbalance
public double getNetImbalance() -
getTimeslotIndex
public int getTimeslotIndex()
-