| Package | Description |
|---|---|
| org.powertac.common | |
| org.powertac.common.repo |
| Modifier and Type | Method and Description |
|---|---|
Tariff |
Tariff.getIsSupersededBy() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
| 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.
|
void |
TariffRepo.removeTariff(Tariff tariff)
Removes a tariff and its specification from the repo.
|
Copyright © 2015. All Rights Reserved.