| Package | Description |
|---|---|
| org.powertac.accounting | |
| org.powertac.common | |
| org.powertac.common.interfaces | |
| org.powertac.common.repo | |
| org.powertac.customer |
Generic customer model components.
|
| org.powertac.tariffmarket |
| Modifier and Type | Method and Description |
|---|---|
TariffTransaction |
AccountingService.addRegulationTransaction(Tariff tariff,
CustomerInfo customer,
int customerCount,
double kWh,
double charge) |
TariffTransaction |
AccountingService.addTariffTransaction(TariffTransaction.Type txType,
Tariff tariff,
CustomerInfo customer,
int customerCount,
double kWh,
double charge) |
| Modifier and Type | Method and Description |
|---|---|
Tariff |
Tariff.getIsSupersededBy() |
Tariff |
TariffSubscription.getTariff() |
Tariff |
TariffSubscription.handleRevokedTariff()
Handles the subscription switch in case the underlying Tariff has been
revoked.
|
| Modifier and Type | Method and 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 timeslot
|
double |
TariffEvaluationHelper.estimateCost(Tariff tariff,
double[] usage,
org.joda.time.Instant start)
Returns aggregate estimated cost, including periodic charges
|
double |
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.
|
| Constructor and Description |
|---|
TariffSubscription(CustomerInfo customer,
Tariff tariff)
You need a CustomerInfo and a Tariff to create one of these.
|
| Modifier and Type | Method and Description |
|---|---|
Tariff |
TariffMarket.getDefaultTariff(PowerType type)
Returns the default tariff.
|
| Modifier and Type | Method and Description |
|---|---|
List<Tariff> |
TariffMarket.getActiveTariffList(PowerType type)
Returns the list of currently active tariffs for the given PowerType.
|
| Modifier and Type | Method and 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) |
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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
NewTariffListener.publishNewTariffs(List<Tariff> tariffs)
Called periodically with a list of newly-published Tariffs
|
| Modifier and Type | Method and Description |
|---|---|
Tariff |
TariffRepo.findTariffById(long id) |
Tariff |
TariffRepo.getDefaultTariff(PowerType type) |
| Modifier and Type | Method and 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) |
| Modifier and Type | Method and 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.
|
| Modifier and Type | Method and 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.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
AbstractCustomer.evaluateTariffs(List<Tariff> tariffs)
Called to evaluate tariffs.
|
void |
CustomerModelService.publishNewTariffs(List<Tariff> tariffs) |
| Modifier and Type | Method and Description |
|---|---|
Tariff |
TariffMarketService.getDefaultTariff(PowerType type)
Returns the default tariff
|
| Modifier and Type | Method and Description |
|---|---|
List<Tariff> |
TariffMarketService.getActiveTariffList(PowerType type) |
| Modifier and Type | Method and Description |
|---|---|
void |
TariffMarketService.subscribeToTariff(Tariff tariff,
CustomerInfo customer,
int customerCount)
If customerCount is positive, subscribes a block of Customers
from a single Customer model to the specified Tariff, as long
as the Tariff is not expired or revoked.
|
Copyright © 2017 Power TAC. All rights reserved.