org.powertac.common
Class BalancingTransaction
java.lang.Object
org.powertac.common.BrokerTransaction
org.powertac.common.BalancingTransaction
public class BalancingTransaction
- extends BrokerTransaction
A BalancingTransaction instance represents the final supply/demand
imbalance in the current timeslot, and the Distribution Utility's charge
for this imbalance.
- Author:
- John Collins
|
Method Summary |
double |
getCharge()
Returns the total charge imposed by the DU for this imbalance --
positive for credit to broker, negative for debit from broker |
double |
getKWh()
Returns the total size of the imbalance in kWH, positive for surplus and
negative for deficit |
double |
getQuantity()
Deprecated. |
String |
toString()
|
BalancingTransaction
public BalancingTransaction(Broker broker,
org.joda.time.Instant when,
double kWh,
double charge)
getQuantity
@Deprecated
public double getQuantity()
- Deprecated.
getKWh
public double getKWh()
- Returns the total size of the imbalance in kWH, positive for surplus and
negative for deficit
getCharge
public double getCharge()
- Returns the total charge imposed by the DU for this imbalance --
positive for credit to broker, negative for debit from broker
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2011. All Rights Reserved.