/** * 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); }