@Scope(value="singleton") @Service public class TransactionFactory extends Object
| Constructor and Description |
|---|
TransactionFactory() |
| Modifier and Type | Method and Description |
|---|---|
org.powertac.common.BalancingTransaction |
makeBalancingTransaction(org.powertac.common.Broker broker,
double kWh,
double charge) |
org.powertac.common.BankTransaction |
makeBankTransaction(org.powertac.common.Broker broker,
double amount) |
org.powertac.common.CapacityTransaction |
makeCapacityTransaction(org.powertac.common.Broker broker,
int peakTimeslot,
double threshold,
double kWh,
double fee) |
org.powertac.common.CashPosition |
makeCashPosition(org.powertac.common.Broker broker,
double balance) |
org.powertac.common.DistributionTransaction |
makeDistributionTransaction(org.powertac.common.Broker broker,
int nSmall,
int nLarge,
double transport,
double distroCharge) |
org.powertac.common.MarketTransaction |
makeMarketTransaction(org.powertac.common.Broker broker,
org.powertac.common.Timeslot timeslot,
double mWh,
double price) |
org.powertac.common.TariffTransaction |
makeTariffTransaction(org.powertac.common.Broker broker,
org.powertac.common.TariffTransaction.Type txType,
org.powertac.common.TariffSpecification spec,
org.powertac.common.CustomerInfo customer,
int customerCount,
double kWh,
double charge)
Creates a tariff transaction that is not a regulation transaction.
|
org.powertac.common.TariffTransaction |
makeTariffTransaction(org.powertac.common.Broker broker,
org.powertac.common.TariffTransaction.Type txType,
org.powertac.common.TariffSpecification spec,
org.powertac.common.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.
|
public org.powertac.common.BankTransaction makeBankTransaction(org.powertac.common.Broker broker,
double amount)
public org.powertac.common.BalancingTransaction makeBalancingTransaction(org.powertac.common.Broker broker,
double kWh,
double charge)
public org.powertac.common.CashPosition makeCashPosition(org.powertac.common.Broker broker,
double balance)
public org.powertac.common.DistributionTransaction makeDistributionTransaction(org.powertac.common.Broker broker,
int nSmall,
int nLarge,
double transport,
double distroCharge)
public org.powertac.common.MarketTransaction makeMarketTransaction(org.powertac.common.Broker broker,
org.powertac.common.Timeslot timeslot,
double mWh,
double price)
public org.powertac.common.TariffTransaction makeTariffTransaction(org.powertac.common.Broker broker,
org.powertac.common.TariffTransaction.Type txType,
org.powertac.common.TariffSpecification spec,
org.powertac.common.CustomerInfo customer,
int customerCount,
double kWh,
double charge)
public org.powertac.common.TariffTransaction makeTariffTransaction(org.powertac.common.Broker broker,
org.powertac.common.TariffTransaction.Type txType,
org.powertac.common.TariffSpecification spec,
org.powertac.common.CustomerInfo customer,
int customerCount,
double kWh,
double charge,
boolean isRegulation)
public org.powertac.common.CapacityTransaction makeCapacityTransaction(org.powertac.common.Broker broker,
int peakTimeslot,
double threshold,
double kWh,
double fee)
Copyright © 2016 Power TAC. All Rights Reserved.