Uses of Class
org.powertac.common.TariffSpecification
-
Packages that use TariffSpecification Package Description org.powertac.common Power TAC domain types, shared between simulation server and brokers.org.powertac.common.interfaces org.powertac.common.msg Message types exchanged between the Power TAC simulation server and brokers.org.powertac.common.repo Repositories that need to exist in both the Power TAC simulation server and in brokers.org.powertac.tariffmarket -
-
Uses of TariffSpecification in org.powertac.common
Methods in org.powertac.common that return TariffSpecification Modifier and Type Method Description TariffSpecification
TariffSpecification. addRate(RateCore rate)
Adds a new RateCore (Rate, RegulationRate, etc.) to this tariff.TariffSpecification
TariffSpecification. addSupersedes(long specId)
Indicates that this tariff supersedes the tariff specified by the specId, the id of the superseded tariff.TariffSpecification
Tariff. getTariffSpec()
TariffSpecification
TariffTransaction. getTariffSpec()
Returns the TariffSpecification instance to which this transaction applies.TariffSpecification
Tariff. getTariffSpecification()
TariffSpecification
TariffSpecification. withEarlyWithdrawPayment(double earlyWithdrawPayment)
Sets the payment for a customer who withdraws from a subscription to this tariff before the minimumDuration has expired.TariffSpecification
TariffSpecification. withExpiration(long expiration)
Sets expiration date as msec since epoch.TariffSpecification
TariffSpecification. withExpiration(org.joda.time.Instant expiration)
Sets the expiration date for this tariff.TariffSpecification
TariffSpecification. withMinDuration(long minDuration)
Sets the minimum duration of a subscription for this tariff.TariffSpecification
TariffSpecification. withPeriodicPayment(double periodicPayment)
Sets the daily payment per customer for subscriptions to this tariff.TariffSpecification
TariffSpecification. withSignupPayment(double signupPayment)
Sets the signup payment for new subscriptions.Methods in org.powertac.common with parameters of type TariffSpecification Modifier and Type Method Description boolean
Rate. isValid(TariffSpecification spec)
Returns true just in case this Rate is internally valid, and valid with respect to the given TariffSpecification.boolean
RegulationRate. isValid(TariffSpecification spec)
Returns true just in case this Rate is internally valid, and valid with respect to the given TariffSpecification.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.Constructors in org.powertac.common with parameters of type TariffSpecification Constructor Description Tariff(TariffSpecification spec)
Creates a new Tariff from the given TariffSpecification.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. -
Uses of TariffSpecification in org.powertac.common.interfaces
Methods in org.powertac.common.interfaces with parameters of type TariffSpecification Modifier and Type Method Description boolean
TariffMarket. setDefaultTariff(TariffSpecification newTariff)
Convenience method to set the default tariff at the beginning of the game. -
Uses of TariffSpecification in org.powertac.common.msg
Constructors in org.powertac.common.msg with parameters of type TariffSpecification Constructor Description BalancingControlEvent(TariffSpecification spec, double kwh, double payment, int timeslotIndex)
Creates a new BalancingControlEvent to represent regulation in the current timeslot.BalancingOrder(Broker broker, TariffSpecification tariff, double exerciseRatio, double price)
Creates a new BalancingOrder for the given tariff.EconomicControlEvent(TariffSpecification tariff, double curtailmentRatio, int timeslotIndex)
Creates a new EconomicControlEvent to take effect in the following timeslot.TariffExpire(Broker broker, TariffSpecification tariff, org.joda.time.Instant expiration)
TariffRevoke(Broker broker, TariffSpecification tariff)
TariffUpdate(Broker broker, TariffSpecification tariff)
-
Uses of TariffSpecification in org.powertac.common.repo
Methods in org.powertac.common.repo that return TariffSpecification Modifier and Type Method Description TariffSpecification
TariffRepo. findSpecificationById(long id)
Methods in org.powertac.common.repo that return types with arguments of type TariffSpecification Modifier and Type Method Description List<TariffSpecification>
TariffRepo. findAllTariffSpecifications()
List<TariffSpecification>
TariffRepo. findTariffSpecificationsByBroker(Broker broker)
List<TariffSpecification>
TariffRepo. findTariffSpecificationsByBrokerAndType(Broker broker, PowerType type)
List<TariffSpecification>
TariffRepo. findTariffSpecificationsByPowerType(PowerType type)
Methods in org.powertac.common.repo with parameters of type TariffSpecification Modifier and Type Method Description void
TariffRepo. addSpecification(TariffSpecification spec)
Adds a TariffSpecification to the repo just in case another spec (or this one) has not already been added sometime in the past.void
TariffRepo. setDefaultTariff(TariffSpecification newSpec)
-
Uses of TariffSpecification in org.powertac.tariffmarket
Methods in org.powertac.tariffmarket with parameters of type TariffSpecification Modifier and Type Method Description void
TariffMarketService. handleMessage(TariffSpecification spec)
Processes a newly-published tariff.boolean
TariffMarketService. setDefaultTariff(TariffSpecification newSpec)
-