| Package | Description |
|---|---|
| org.powertac.common | |
| org.powertac.common.interfaces | |
| org.powertac.common.msg | |
| org.powertac.common.repo | |
| org.powertac.tariffmarket |
| Modifier and Type | Method and Description |
|---|---|
TariffSpecification |
TariffSpecification.addRate(RateCore rate)
Adds a new RateCore (Rate, RegulationRate, etc.) to this tariff.
|
TariffSpecification |
TariffSpecification.addSupersedes(long specId)
Indicates that this tariff supersedes the tariff specified by the
specId, the id of the superseded tariff.
|
TariffSpecification |
TariffTransaction.getTariffSpec()
Returns the TariffSpecification instance to which this transaction applies.
|
TariffSpecification |
Tariff.getTariffSpec() |
TariffSpecification |
Tariff.getTariffSpecification() |
TariffSpecification |
TariffSpecification.withEarlyWithdrawPayment(double earlyWithdrawPayment)
Sets the payment for a customer who withdraws from a subscription to
this tariff before the minimumDuration has expired.
|
TariffSpecification |
TariffSpecification.withExpiration(org.joda.time.Instant expiration)
Sets the expiration date for this tariff.
|
TariffSpecification |
TariffSpecification.withMinDuration(long minDuration)
Sets the minimum duration of a subscription for this tariff.
|
TariffSpecification |
TariffSpecification.withPeriodicPayment(double periodicPayment)
Sets the daily payment per customer for subscriptions to this tariff.
|
TariffSpecification |
TariffSpecification.withSignupPayment(double signupPayment)
Sets the signup payment for new subscriptions.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
RegulationRate.isValid(TariffSpecification spec)
Returns true just in case this Rate is internally valid, and valid
with respect to the given TariffSpecification.
|
boolean |
Rate.isValid(TariffSpecification spec)
Returns true just in case this Rate is internally valid, and valid
with respect to the given TariffSpecification.
|
TariffTransaction |
TransactionFactory.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.
|
TariffTransaction |
TransactionFactory.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.
|
| Constructor and 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.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
TariffMarket.setDefaultTariff(TariffSpecification newTariff)
Convenience method to set the default tariff at the beginning of the game.
|
| Constructor and Description |
|---|
BalancingControlEvent(TariffSpecification spec,
double kwh,
double payment,
int timeslotIndex)
Creates a new BalancingControlEvent to represent a curtailment 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) |
| Modifier and Type | Method and Description |
|---|---|
TariffSpecification |
TariffRepo.findSpecificationById(long id) |
| Modifier and Type | Method and Description |
|---|---|
List<TariffSpecification> |
TariffRepo.findAllTariffSpecifications() |
List<TariffSpecification> |
TariffRepo.findTariffSpecificationsByBroker(Broker broker) |
List<TariffSpecification> |
TariffRepo.findTariffSpecificationsByPowerType(PowerType type) |
| Modifier and Type | Method and Description |
|---|---|
void |
TariffRepo.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.
|
void |
TariffRepo.setDefaultTariff(TariffSpecification newSpec) |
| Modifier and Type | Method and Description |
|---|---|
void |
TariffMarketService.handleMessage(TariffSpecification spec)
Processes a newly-published tariff.
|
boolean |
TariffMarketService.setDefaultTariff(TariffSpecification newSpec) |
Copyright © 2017 Power TAC. All rights reserved.