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
-
Constructor Summary
Constructors Constructor Description CapacityTransaction(Broker broker, int when, int peakTimeslot, double threshold, double kwh, double charge) -
Method Summary
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.BrokerTransaction
getBroker, getId, getPostedTime, getPostedTimeslot, getPostedTimeslotIndex
-
Constructor Details
-
CapacityTransaction
public CapacityTransaction(Broker broker, int when, int peakTimeslot, double threshold, double kwh, double charge)
-
-
Method Details
-
getPeakTimeslot
public int getPeakTimeslot()When this peak occurred. -
getThreshold
public double getThreshold()The peak-demand threshold for this assessment. -
getKWh
public double getKWh()The amount by which this broker's total net consumption exceeded the threshold, in kWh. -
getCharge
public double getCharge()The total charge imposed by the DU for this assessment. Since this is a debit, it will always be negative. -
toString
-