PublishTariffCommand - Pyosch/powertac-server GitHub Wiki

up

Note - in the implementation, this is called "TariffSpecification".

##Description Brokers can publish tariffs any time during the competition. These are stored by the Accounting Service in a PublishedTariffList. Upon each timeslot change, the latest version of this list is sent out to all customers and all brokers.

##Command created by:

  • Broker

##Server logic triggered by this command:

###Publish a broker's tariff

  • Involved: Br-AC
  • A TariffSpecification enters the server as JMS message with XML payload from a broker. It is then unmarshalled into a TariffSpecification object (see below) and validated through the TariffRuleEnforcer. If the competition's tariffing rules are not fulfilled, an error message is generated by the TariffRuleEnforcer and sent out to the Broker. Otherwise the TariffSpecification is added to the database. The AccountingService is not involved.

##Class Diagram

Please see the updated Tariff structure in the domain-data repository.

⚠️ **GitHub.com Fallback** ⚠️