| Package | Description |
|---|---|
| org.powertac.common | |
| org.powertac.common.interfaces |
| Modifier and Type | Method and Description |
|---|---|
TariffTransaction.Type |
TariffTransaction.getTxType() |
static TariffTransaction.Type |
TariffTransaction.Type.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TariffTransaction.Type[] |
TariffTransaction.Type.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
TariffTransaction |
TransactionFactory.makeTariffTransaction(Broker broker,
TariffTransaction.Type txType,
TariffSpecification spec,
CustomerInfo customer,
int customerCount,
double kWh,
double charge)
Creates a tariff transaction that is not a regulation transaction.
|
TariffTransaction |
TransactionFactory.makeTariffTransaction(Broker broker,
TariffTransaction.Type txType,
TariffSpecification spec,
CustomerInfo customer,
int customerCount,
double kWh,
double charge,
boolean isRegulation)
Creates a tariff transaction that could be a regulation transaction,
depending on the value of the isRegulation parameter.
|
| Constructor and Description |
|---|
TariffTransaction(Broker broker,
int when,
TariffTransaction.Type txType,
TariffSpecification spec,
CustomerInfo customer,
int customerCount,
double kWh,
double charge)
Deprecated.
|
TariffTransaction(Broker broker,
int when,
TariffTransaction.Type txType,
TariffSpecification spec,
CustomerInfo customer,
int customerCount,
double kWh,
double charge,
boolean regulation)
Creates a new TariffTransaction for broker of type txType against
a particular tariff spec and customer.
|
| Modifier and Type | Method and Description |
|---|---|
Map<Broker,Map<TariffTransaction.Type,Double>> |
Accounting.getCurrentSupplyDemandByBroker()
Returns a mapping of brokers to total supply and demand among subscribed
customers.
|
| Modifier and Type | Method and Description |
|---|---|
TariffTransaction |
Accounting.addTariffTransaction(TariffTransaction.Type txType,
Tariff tariff,
CustomerInfo customer,
int customerCount,
double kWh,
double charge)
Adds a tariff transaction to the current-hour transaction list.
|
Copyright © 2017 Power TAC. All rights reserved.