public interface Accounting
Accounting is also a TimeslotPhaseProcessor, running in the last phase of the simulation cycle. All processors that can generate transactions must run in earlier phases.
| Modifier and Type | Method and Description |
|---|---|
void |
activate(org.joda.time.Instant time,
int phase)
Runs the accounting process.
|
org.powertac.common.BalancingTransaction |
addBalancingTransaction(org.powertac.common.Broker broker,
double imbalance,
double charge)
Adds a balancing transaction to represent the cost of imbalance
|
org.powertac.common.CapacityTransaction |
addCapacityTransaction(org.powertac.common.Broker broker,
int peakTimeslot,
double threshold,
double kWh,
double fee)
Adds a capacity transaction to represent charges for contribution to
a demand peak.
|
org.powertac.common.DistributionTransaction |
addDistributionTransaction(org.powertac.common.Broker broker,
int nSmall,
int nLarge,
double transport,
double distroCharge)
Adds a distribution transaction to represent charges for customer
connections and energy transport.
|
org.powertac.common.MarketTransaction |
addMarketTransaction(org.powertac.common.Broker broker,
org.powertac.common.Timeslot timeslot,
double price,
double mWh)
Adds a market transaction that includes both a cash component and a product
commitment for a specific timeslot.
|
org.powertac.common.TariffTransaction |
addRegulationTransaction(org.powertac.common.Tariff tariff,
org.powertac.common.CustomerInfo customer,
int customerCount,
double kWh,
double charge)
Adds a tariff transaction representing a curtailment or balancing action
to the current-hour transaction list.
|
org.powertac.common.TariffTransaction |
addTariffTransaction(org.powertac.common.TariffTransaction.Type txType,
org.powertac.common.Tariff tariff,
org.powertac.common.CustomerInfo customer,
int customerCount,
double kWh,
double charge)
Adds a tariff transaction to the current-hour transaction list.
|
double |
getCurrentMarketPosition(org.powertac.common.Broker broker)
Returns the market position for the current timeslot for a given broker.
|
double |
getCurrentNetLoad(org.powertac.common.Broker broker)
Returns the current net load represented by unprocessed TariffTransactions
for a specific Broker.
|
Map<org.powertac.common.Broker,Map<org.powertac.common.TariffTransaction.Type,Double>> |
getCurrentSupplyDemandByBroker()
Returns a mapping of brokers to total supply and demand among subscribed
customers.
|
List<org.powertac.common.TariffTransaction> |
getPendingTariffTransactions()
Returns the list of pending tariff transactions for the current timeslot.
|
org.powertac.common.MarketTransaction addMarketTransaction(org.powertac.common.Broker broker,
org.powertac.common.Timeslot timeslot,
double price,
double mWh)
org.powertac.common.TariffTransaction addTariffTransaction(org.powertac.common.TariffTransaction.Type txType,
org.powertac.common.Tariff tariff,
org.powertac.common.CustomerInfo customer,
int customerCount,
double kWh,
double charge)
org.powertac.common.TariffTransaction addRegulationTransaction(org.powertac.common.Tariff tariff,
org.powertac.common.CustomerInfo customer,
int customerCount,
double kWh,
double charge)
org.powertac.common.DistributionTransaction addDistributionTransaction(org.powertac.common.Broker broker,
int nSmall,
int nLarge,
double transport,
double distroCharge)
org.powertac.common.CapacityTransaction addCapacityTransaction(org.powertac.common.Broker broker,
int peakTimeslot,
double threshold,
double kWh,
double fee)
peakTimeslot: - when the peak occurredthreshold: - assessment thresholdkWh: - total net demand among broker's customers during timeslotfee: - assessed capacity fee for this peak eventorg.powertac.common.BalancingTransaction addBalancingTransaction(org.powertac.common.Broker broker,
double imbalance,
double charge)
double getCurrentNetLoad(org.powertac.common.Broker broker)
Map<org.powertac.common.Broker,Map<org.powertac.common.TariffTransaction.Type,Double>> getCurrentSupplyDemandByBroker()
double getCurrentMarketPosition(org.powertac.common.Broker broker)
List<org.powertac.common.TariffTransaction> getPendingTariffTransactions()
void activate(org.joda.time.Instant time,
int phase)
Copyright © 2016 Power TAC. All Rights Reserved.