Uses of Class
org.powertac.common.Tariff
-
Packages that use Tariff Package Description org.powertac.common Power TAC domain types, shared between simulation server and brokers.org.powertac.common.interfaces org.powertac.common.repo Repositories that need to exist in both the Power TAC simulation server and in brokers.org.powertac.customer org.powertac.officecomplexcustomer org.powertac.officecomplexcustomer.appliances org.powertac.officecomplexcustomer.customers -
-
Uses of Tariff in org.powertac.common
Methods in org.powertac.common that return Tariff Modifier and Type Method Description TariffTariff. getIsSupersededBy()TariffTariffEvaluationHelper. getTariff()TariffTariffSubscription. getTariff()TariffTariffSubscription. handleRevokedTariff()Handles the subscription switch in case the underlying Tariff has been revoked.Methods in org.powertac.common with parameters of type Tariff Modifier and Type Method Description doubleTariffEvaluator. computeInconvenience(Tariff tariff)Computes composite per-tariff inconvenience of a tariff.doubleTariffEvaluationHelper. estimateCost(Tariff tariff, double[] usage)Returns aggregate estimated cost, including periodic charges, starting in the next timeslot.doubleTariffEvaluationHelper. estimateCost(Tariff tariff, double[] usage, boolean includePeriodicCharge)Estimate cost for a profile starting in the next timeslotdoubleTariffEvaluationHelper. estimateCost(Tariff tariff, double[] usage, org.joda.time.Instant start)Returns aggregate estimated cost, including periodic chargesdoubleTariffEvaluationHelper. estimateCost(Tariff tariff, double[] usage, org.joda.time.Instant start, boolean includePeriodicCharge)Estimate the total cost of buying the given amounts of power from the given tariff, starting in the timeslot identified by startIndex.double[]TariffEvaluationHelper. estimateCostArray(Tariff tariff, double[] usage)Returns a cost estimate in array form, including periodic charges.double[]TariffEvaluationHelper. estimateCostArray(Tariff tariff, double[] usage, boolean includePeriodicCharge)Returns the cost estimate in the form of an array of the same shape as the usage vector.Constructors in org.powertac.common with parameters of type Tariff Constructor Description TariffSubscription(CustomerInfo customer, Tariff tariff)You need a CustomerInfo and a Tariff to create one of these. -
Uses of Tariff in org.powertac.common.interfaces
Methods in org.powertac.common.interfaces that return Tariff Modifier and Type Method Description TariffTariffMarket. getDefaultTariff(PowerType type)Returns the default tariff.Methods in org.powertac.common.interfaces that return types with arguments of type Tariff Modifier and Type Method Description List<Tariff>TariffMarket. getActiveTariffList(PowerType type)Returns the list of currently active tariffs for the given PowerType.Methods in org.powertac.common.interfaces with parameters of type Tariff Modifier and Type Method Description TariffTransactionAccounting. addRegulationTransaction(Tariff tariff, CustomerInfo customer, int customerCount, double kWh, double charge)Adds a tariff transaction representing a curtailment or balancing action to the current-hour transaction list.TariffTransactionAccounting. addTariffTransaction(TariffTransaction.Type txType, Tariff tariff, CustomerInfo customer, int customerCount, double kWh, double charge)Adds a tariff transaction to the current-hour transaction list.CapacityProfileCustomerModelAccessor. getCapacityProfile(Tariff tariff)Returns a capacity profile for the given tariff.doubleCustomerModelAccessor. getShiftingInconvenienceFactor(Tariff tariff)Returns a [0,1] value representing the inconvenience of dealing with curtailment in exchange for a lower price.voidTariffMarket. subscribeToTariff(Tariff tariff, CustomerInfo customer, int customerCount)Subscribes a block of Customers from a single Customer model to the specified Tariff, as long as the Tariff has not expired.Method parameters in org.powertac.common.interfaces with type arguments of type Tariff Modifier and Type Method Description voidNewTariffListener. publishNewTariffs(List<Tariff> tariffs)Called periodically with a list of newly-published Tariffs -
Uses of Tariff in org.powertac.common.repo
Methods in org.powertac.common.repo that return Tariff Modifier and Type Method Description TariffTariffRepo. findTariffById(long id)TariffTariffRepo. getDefaultTariff(PowerType type)Methods in org.powertac.common.repo that return types with arguments of type Tariff Modifier and Type Method Description List<Tariff>TariffRepo. findActiveTariffs(PowerType type)Returns the list of active tariffs that exactly match the given PowerType.List<Tariff>TariffRepo. findAllActiveTariffs(PowerType type)Returns the list of active tariffs that can be used by a customer of the given PowerType, including those that are more generic than the specific type.List<Tariff>TariffRepo. findAllTariffs()List<Tariff>TariffRepo. findRecentActiveTariffs(int n, PowerType type)Returns the n most "recent" active tariffs from each broker that can be used by a customer with the given powerType.List<Tariff>TariffRepo. findTariffsByBroker(Broker broker)List<Tariff>TariffRepo. findTariffsByState(Tariff.State state)Methods in org.powertac.common.repo with parameters of type Tariff Modifier and Type Method Description voidTariffRepo. addTariff(Tariff tariff)voidTariffRepo. deleteTariff(Tariff tariff)Deletes a tariff and its specification from the repo, without tracking.TariffSubscriptionTariffSubscriptionRepo. findSubscriptionForTariffAndCustomer(Tariff tariff, CustomerInfo customer)Returns the subscription, if any, for the specified tariff and customer.List<TariffSubscription>TariffSubscriptionRepo. findSubscriptionsForTariff(Tariff tariff)Returns the list of subscriptions for a given tariff.TariffSubscriptionTariffSubscriptionRepo. getSubscription(CustomerInfo customer, Tariff tariff)Returns the TariffSubscription for the given Tariff/Customer pair, creating it if necessary.voidTariffSubscriptionRepo. removeSubscriptionsForTariff(Tariff tariff)Removes all subscriptions for the given tariff.voidTariffRepo. removeTariff(Tariff tariff)Removes a tariff and its specification from the repo. -
Uses of Tariff in org.powertac.customer
Methods in org.powertac.customer with parameters of type Tariff Modifier and Type Method Description voidAbstractCustomer. changeSubscription(Tariff tariff, Tariff newTariff, CustomerInfo customer)In this overloaded implementation of the changing subscription function, Here we just put the tariff we want to change and the whole population is moved to another random tariff.Method parameters in org.powertac.customer with type arguments of type Tariff Modifier and Type Method Description abstract voidAbstractCustomer. evaluateTariffs(List<Tariff> tariffs)Called to evaluate tariffs.voidCustomerModelService. publishNewTariffs(List<Tariff> tariffs) -
Uses of Tariff in org.powertac.officecomplexcustomer
Method parameters in org.powertac.officecomplexcustomer with type arguments of type Tariff Modifier and Type Method Description voidOfficeComplexCustomerService. publishNewTariffs(List<Tariff> tariffs) -
Uses of Tariff in org.powertac.officecomplexcustomer.appliances
Methods in org.powertac.officecomplexcustomer.appliances with parameters of type Tariff Modifier and Type Method Description double[]Appliance. dailyShifting(Tariff tariff, double[] nonDominantLoad, TariffEvaluationHelper tariffEvalHelper, int day, org.joda.time.Instant start)This is a complex function that changes the appliance's function in order to have the most cost effective operation load in a day schedule.double[]CopyMachine. dailyShifting(Tariff tariff, double[] nonDominantUsage, TariffEvaluationHelper tariffEvalHelper, int day, org.joda.time.Instant start)double[]MicrowaveOven. dailyShifting(Tariff tariff, double[] nonDominantUsage, TariffEvaluationHelper tariffEvalHelper, int day, org.joda.time.Instant start) -
Uses of Tariff in org.powertac.officecomplexcustomer.customers
Methods in org.powertac.officecomplexcustomer.customers with parameters of type Tariff Modifier and Type Method Description CapacityProfileOfficeComplex.TariffEvaluationWrapper. getCapacityProfile(Tariff tariff)doubleOfficeComplex.TariffEvaluationWrapper. getShiftingInconvenienceFactor(Tariff tariff)Method parameters in org.powertac.officecomplexcustomer.customers with type arguments of type Tariff Modifier and Type Method Description voidOfficeComplex. evaluateTariffs(List<Tariff> newTariffs)This is the basic evaluation function, taking into consideration the minimum cost without shifting the appliances' load but the tariff chosen is picked up randomly by using a possibility pattern.
-