RevokeTariffCommand - Pyosch/powertac-server GitHub Wiki
RevokeTariffCommand
Description
Brokers can revoke tariffs they previously published any time during the competition. The accounting service then removes the respective tariff from the PublishedTariffList
. Consquently, upon the next timeslot change, the list of all published tariffs does not contain the respective tariff anymore.
Command created by:
- Broker
Server logic triggered by this command:
Server Logic 1
- Involved: Br-As
- A
RevokeTariffCommand
enters the server as JMS message with XML payload from a broker. It is then unmarshalled into aRevokeTariffCommand
object (see below) and the broker credentials are validated (authentication). TheRevokeTariffCommand
is then forwarded to the AccountingService, which removes the respective tariff from thePublishedTariffList
. When this list is sent out to the public upon the next timeslot change, the revoked tariff is no longer included.