Package | Description |
---|---|
org.powertac.common |
Power TAC domain types, shared between simulation server and brokers.
|
org.powertac.common.msg |
Message types exchanged between the Power TAC simulation server and brokers.
|
org.powertac.common.repo |
Repositories that need to exist in both the Power TAC simulation server
and in brokers.
|
org.powertac.samplebroker |
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.
|
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.
|
Constructor and Description |
---|
BalancingControlEvent(TariffSpecification spec,
double kwh,
double payment,
int timeslotIndex)
Creates a new BalancingControlEvent to represent regulation 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 |
PortfolioManagerService.handleMessage(TariffSpecification spec)
Handles a TariffSpecification.
|
Copyright © 2019 Power TAC. All rights reserved.