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