Package org.powertac.common
Class CapacityTransaction
- java.lang.Object
- 
- org.powertac.common.state.XStreamStateLoggable
- 
- org.powertac.common.BrokerTransaction
- 
- org.powertac.common.CapacityTransaction
 
 
 
- 
 @Domain(fields={"postedTimeslot","peakTimeslot","threshold","KWh","charge"}) public class CapacityTransaction extends BrokerTransaction Represents the fee assessed by the Distribution Utility for peak capacity events. These are issued to each broker once for each capacity assessment interval.- Author:
- John Collins
 
- 
- 
Field Summary- 
Fields inherited from class org.powertac.common.BrokerTransactionbroker, id, postedTimeslot
 
- 
 - 
Constructor SummaryConstructors Constructor Description CapacityTransaction(Broker broker, int when, int peakTimeslot, double threshold, double kwh, double charge)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetCharge()The total charge imposed by the DU for this assessment.doublegetKWh()The amount by which this broker's total net consumption exceeded the threshold, in kWh.intgetPeakTimeslot()When this peak occurred.doublegetThreshold()The peak-demand threshold for this assessment.StringtoString()- 
Methods inherited from class org.powertac.common.BrokerTransactiongetBroker, getId, getPostedTime, getPostedTimeslot, getPostedTimeslotIndex
 - 
Methods inherited from class org.powertac.common.state.XStreamStateLoggablereadResolve
 
- 
 
- 
- 
- 
Constructor Detail- 
CapacityTransactionpublic CapacityTransaction(Broker broker, int when, int peakTimeslot, double threshold, double kwh, double charge) 
 
- 
 - 
Method Detail- 
getPeakTimeslotpublic int getPeakTimeslot() When this peak occurred.
 - 
getThresholdpublic double getThreshold() The peak-demand threshold for this assessment.
 - 
getKWhpublic double getKWh() The amount by which this broker's total net consumption exceeded the threshold, in kWh.
 - 
getChargepublic double getCharge() The total charge imposed by the DU for this assessment. Since this is a debit, it will always be negative.
 
- 
 
-