public CapacityTransaction makeCapacityTransaction (Broker broker, int peakTimeslot, double threshold, double kWh, double fee) { return new CapacityTransaction(broker, getTimeslotIndex(), peakTimeslot, threshold, kWh, fee); } }
public DistributionTransaction makeDistributionTransaction (Broker broker, int nSmall, int nLarge, double transport, double distroCharge) { return new DistributionTransaction(broker, getTimeslotIndex(), nSmall, nLarge, transport, distroCharge); }
public MarketTransaction makeMarketTransaction (Broker broker, Timeslot timeslot, double mWh, double price) { return new MarketTransaction(broker, getTimeslotIndex(), timeslot, mWh, price); }
public BalancingTransaction makeBalancingTransaction (Broker broker, double kWh, double charge) { return new BalancingTransaction(broker, getTimeslotIndex(), kWh, charge); }
public CashPosition makeCashPosition (Broker broker, double balance) { return new CashPosition(broker, balance, getTimeslotIndex()); }
public BankTransaction makeBankTransaction (Broker broker, double amount) { return new BankTransaction(broker, amount, getTimeslotIndex()); }
/** * Creates a tariff transaction that is not a regulation transaction. */ public TariffTransaction makeTariffTransaction(Broker broker, TariffTransaction.Type txType, TariffSpecification spec, CustomerInfo customer, int customerCount, double kWh, double charge) { return new TariffTransaction (broker, getTimeslotIndex(), txType, spec, customer, customerCount, kWh, charge, false); }
/** * Creates a tariff transaction that could be a regulation transaction, * depending on the value of the isRegulation parameter. */ public TariffTransaction makeTariffTransaction(Broker broker, TariffTransaction.Type txType, TariffSpecification spec, CustomerInfo customer, int customerCount, double kWh, double charge, boolean isRegulation) { return new TariffTransaction (broker, getTimeslotIndex(), txType, spec, customer, customerCount, kWh, charge, isRegulation); }