Package org.powertac.common
Class BalancingTransaction
- java.lang.Object
- 
- org.powertac.common.state.XStreamStateLoggable
- 
- org.powertac.common.BrokerTransaction
- 
- org.powertac.common.BalancingTransaction
 
 
 
- 
 @Domain(fields={"postedTimeslot","KWh","charge"}) public class BalancingTransaction extends BrokerTransaction Represents the broker's final supply/demand imbalance in the current timeslot, and the Distribution Utility's charge for this imbalance.- Author:
- John Collins
 
- 
- 
Field Summary- 
Fields inherited from class org.powertac.common.BrokerTransactionbroker, id, postedTimeslot
 
- 
 - 
Constructor SummaryConstructors Constructor Description BalancingTransaction(Broker broker, int when, double kWh, double charge)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description doublegetCharge()Returns the total charge imposed by the DU for this imbalance -- positive for credit to broker, negative for debit from brokerdoublegetKWh()Returns the total size of the imbalance in kWH, positive for surplus and negative for deficitdoublegetQuantity()Deprecated.StringtoString()- 
Methods inherited from class org.powertac.common.BrokerTransactiongetBroker, getId, getPostedTime, getPostedTimeslot, getPostedTimeslotIndex
 - 
Methods inherited from class org.powertac.common.state.XStreamStateLoggablereadResolve
 
- 
 
- 
- 
- 
Constructor Detail- 
BalancingTransactionpublic BalancingTransaction(Broker broker, int when, double kWh, double charge) 
 
- 
 - 
Method Detail- 
getQuantity@Deprecated public double getQuantity() Deprecated.
 - 
getKWhpublic double getKWh() Returns the total size of the imbalance in kWH, positive for surplus and negative for deficit
 - 
getChargepublic double getCharge() Returns the total charge imposed by the DU for this imbalance -- positive for credit to broker, negative for debit from broker
 
- 
 
-