-
Notifications
You must be signed in to change notification settings - Fork 36
PublishTariffCommand
jecollins edited this page Dec 25, 2010
·
8 revisions
#PublishTariffCommand
##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 PublishTariffCommand enters the server as JMS message with XML payload from a broker. It is then unmarshalled into a PublishTariffCommand 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 PublisheTariffCommandObject is forwarded to the AccountingServices, which adds the new tariff to the list of published tariffs.
##Class Diagram
Please see the updated Tariff structure in the domain-data repository.