Package org.powertac.common
Class DistributionTransaction
- java.lang.Object
- 
- org.powertac.common.state.XStreamStateLoggable
- 
- org.powertac.common.BrokerTransaction
- 
- org.powertac.common.DistributionTransaction
 
 
 
- 
 @Domain(fields={"postedTimeslot","NSmall","NLarge","KWh","charge"}) public class DistributionTransaction extends BrokerTransaction Represents the fee assessed by the Distribution Utility for transport of energy over its facilities during the current timeslot. The kWh is the total energy delivered, which is the sum of the positive net load of the broker's customers, and the positive net export of energy through the wholesale market. Negative values are ignored.- Author:
- John Collins
 
- 
- 
Field Summary- 
Fields inherited from class org.powertac.common.BrokerTransactionbroker, id, postedTimeslot
 
- 
 - 
Constructor SummaryConstructors Constructor Description DistributionTransaction(Broker broker, int when, double kwh, double charge)DistributionTransaction(Broker broker, int when, int nSmall, int nLarge, double kwh, double charge)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description doublegetCharge()Returns the total fee assessed for transport and customer connections.doublegetKWh()Returns the transported energy quantity represented by this transaction.intgetNLarge()Returns the number of large customer subscriptions for which meter fees are assessed.intgetNSmall()Returns the number of small customer subscriptions for which meter fees are assessed.doublegetQuantity()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- 
DistributionTransaction@ChainedConstructor public DistributionTransaction(Broker broker, int when, double kwh, double charge) 
 - 
DistributionTransactionpublic DistributionTransaction(Broker broker, int when, int nSmall, int nLarge, double kwh, double charge) 
 
- 
 - 
Method Detail- 
getQuantity@Deprecated public double getQuantity() Deprecated.
 - 
getKWhpublic double getKWh() Returns the transported energy quantity represented by this transaction. Will be non-zero only if transport fees are being assessed.
 - 
getNSmallpublic int getNSmall() Returns the number of small customer subscriptions for which meter fees are assessed.
 - 
getNLargepublic int getNLarge() Returns the number of large customer subscriptions for which meter fees are assessed.
 - 
getChargepublic double getCharge() Returns the total fee assessed for transport and customer connections.
 
- 
 
-