public interface TariffMarket
Note that all methods driven by messages from the incoming message channel are polymorphic methods that select by argument type at runtime. They all return a TariffStatus instance that can be routed back to the originating broker.
| Modifier and Type | Method and Description |
|---|---|
List<org.powertac.common.Tariff> |
getActiveTariffList(org.powertac.common.enumerations.PowerType type)
Returns the list of currently active tariffs for the given PowerType.
|
org.powertac.common.Tariff |
getDefaultTariff(org.powertac.common.enumerations.PowerType type)
Returns the default tariff.
|
void |
processRevokedTariffs()
Deprecated.
|
void |
registerNewTariffListener(NewTariffListener listener)
Registers a listener for publication of new Tariffs.
|
boolean |
setDefaultTariff(org.powertac.common.TariffSpecification newTariff)
Convenience method to set the default tariff at the beginning of the game.
|
void |
subscribeToTariff(org.powertac.common.Tariff tariff,
org.powertac.common.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.
|
void subscribeToTariff(org.powertac.common.Tariff tariff,
org.powertac.common.CustomerInfo customer,
int customerCount)
List<org.powertac.common.Tariff> getActiveTariffList(org.powertac.common.enumerations.PowerType type)
org.powertac.common.Tariff getDefaultTariff(org.powertac.common.enumerations.PowerType type)
boolean setDefaultTariff(org.powertac.common.TariffSpecification newTariff)
void registerNewTariffListener(NewTariffListener listener)
@Deprecated void processRevokedTariffs()
Copyright © 2016 Power TAC. All Rights Reserved.