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.householdcustomer org.powertac.householdcustomer.appliances org.powertac.householdcustomer.customers -
-
Uses of Tariff in org.powertac.common
Methods in org.powertac.common that return Tariff Modifier and Type Method Description Tariff
Tariff. getIsSupersededBy()
Tariff
TariffEvaluationHelper. getTariff()
Tariff
TariffSubscription. getTariff()
Tariff
TariffSubscription. 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 double
TariffEvaluator. computeInconvenience(Tariff tariff)
Computes composite per-tariff inconvenience of a tariff.double
TariffEvaluationHelper. estimateCost(Tariff tariff, double[] usage)
Returns aggregate estimated cost, including periodic charges, starting in the next timeslot.double
TariffEvaluationHelper. estimateCost(Tariff tariff, double[] usage, boolean includePeriodicCharge)
Estimate cost for a profile starting in the next timeslotdouble
TariffEvaluationHelper. estimateCost(Tariff tariff, double[] usage, org.joda.time.Instant start)
Returns aggregate estimated cost, including periodic chargesdouble
TariffEvaluationHelper. 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 Tariff
TariffMarket. 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 TariffTransaction
Accounting. 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.TariffTransaction
Accounting. addTariffTransaction(TariffTransaction.Type txType, Tariff tariff, CustomerInfo customer, int customerCount, double kWh, double charge)
Adds a tariff transaction to the current-hour transaction list.CapacityProfile
CustomerModelAccessor. getCapacityProfile(Tariff tariff)
Returns a capacity profile for the given tariff.double
CustomerModelAccessor. getShiftingInconvenienceFactor(Tariff tariff)
Returns a [0,1] value representing the inconvenience of dealing with curtailment in exchange for a lower price.void
TariffMarket. 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 void
NewTariffListener. 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 Tariff
TariffRepo. findTariffById(long id)
Tariff
TariffRepo. 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 void
TariffRepo. addTariff(Tariff tariff)
void
TariffRepo. deleteTariff(Tariff tariff)
Deletes a tariff and its specification from the repo, without tracking.TariffSubscription
TariffSubscriptionRepo. 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.TariffSubscription
TariffSubscriptionRepo. getSubscription(CustomerInfo customer, Tariff tariff)
Returns the TariffSubscription for the given Tariff/Customer pair, creating it if necessary.void
TariffSubscriptionRepo. removeSubscriptionsForTariff(Tariff tariff)
Removes all subscriptions for the given tariff.void
TariffRepo. 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 void
AbstractCustomer. 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 void
AbstractCustomer. evaluateTariffs(List<Tariff> tariffs)
Called to evaluate tariffs.void
CustomerModelService. publishNewTariffs(List<Tariff> tariffs)
-
Uses of Tariff in org.powertac.householdcustomer
Method parameters in org.powertac.householdcustomer with type arguments of type Tariff Modifier and Type Method Description void
HouseholdCustomerService. publishNewTariffs(List<Tariff> tariffs)
-
Uses of Tariff in org.powertac.householdcustomer.appliances
Methods in org.powertac.householdcustomer.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[]
Dishwasher. dailyShifting(Tariff tariff, double[] nonDominantUsage, TariffEvaluationHelper tariffEvalHelper, int day, org.joda.time.Instant start)
double[]
Dryer. dailyShifting(Tariff tariff, double[] nonDominantUsage, TariffEvaluationHelper tariffEvalHelper, int day, org.joda.time.Instant start)
double[]
Freezer. dailyShifting(Tariff tariff, double[] nonDominantUsage, TariffEvaluationHelper tariffEvalHelper, int day, org.joda.time.Instant start)
double[]
Refrigerator. dailyShifting(Tariff tariff, double[] nonDominantUsage, TariffEvaluationHelper tariffEvalHelper, int day, org.joda.time.Instant start)
double[]
Stove. dailyShifting(Tariff tariff, double[] nonDominantUsage, TariffEvaluationHelper tariffEvalHelper, int day, org.joda.time.Instant start)
double[]
WashingMachine. dailyShifting(Tariff tariff, double[] nonDominantUsage, TariffEvaluationHelper tariffEvalHelper, int day, org.joda.time.Instant start)
double[]
WaterHeater. dailyShifting(Tariff tariff, double[] nonDominantUsage, TariffEvaluationHelper tariffEvalHelper, int day, org.joda.time.Instant start)
-
Uses of Tariff in org.powertac.householdcustomer.customers
Methods in org.powertac.householdcustomer.customers with parameters of type Tariff Modifier and Type Method Description CapacityProfile
Village.TariffEvaluationWrapper. getCapacityProfile(Tariff tariff)
double
Village.TariffEvaluationWrapper. getShiftingInconvenienceFactor(Tariff tariff)
Method parameters in org.powertac.householdcustomer.customers with type arguments of type Tariff Modifier and Type Method Description void
Village. evaluateTariffs(List<Tariff> tariffs)
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.
-