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. -
-
Uses of TariffSpecification in org.powertac.common
Methods in org.powertac.common that return TariffSpecification Modifier and Type Method Description TariffSpecificationTariffSpecification. addRate(RateCore rate)Adds a new RateCore (Rate, RegulationRate, etc.) to this tariff.TariffSpecificationTariffSpecification. addSupersedes(long specId)Indicates that this tariff supersedes the tariff specified by the specId, the id of the superseded tariff.TariffSpecificationTariff. getTariffSpec()TariffSpecificationTariffTransaction. getTariffSpec()Returns the TariffSpecification instance to which this transaction applies.TariffSpecificationTariff. getTariffSpecification()TariffSpecificationTariffSpecification. withEarlyWithdrawPayment(double earlyWithdrawPayment)Sets the payment for a customer who withdraws from a subscription to this tariff before the minimumDuration has expired.TariffSpecificationTariffSpecification. withExpiration(long expiration)Sets expiration date as msec since epoch.TariffSpecificationTariffSpecification. withExpiration(org.joda.time.Instant expiration)Sets the expiration date for this tariff.TariffSpecificationTariffSpecification. withMinDuration(long minDuration)Sets the minimum duration of a subscription for this tariff.TariffSpecificationTariffSpecification. withPeriodicPayment(double periodicPayment)Sets the daily payment per customer for subscriptions to this tariff.TariffSpecificationTariffSpecification. 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 booleanRate. isValid(TariffSpecification spec)Returns true just in case this Rate is internally valid, and valid with respect to the given TariffSpecification.booleanRegulationRate. isValid(TariffSpecification spec)Returns true just in case this Rate is internally valid, and valid with respect to the given TariffSpecification.TariffTransactionTransactionFactory. 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.TariffTransactionTransactionFactory. 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 booleanTariffMarket. 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 TariffSpecificationTariffRepo. 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 voidTariffRepo. 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.voidTariffRepo. setDefaultTariff(TariffSpecification newSpec)
-