powertac/server-interface — pull request #4 by chrysopoulos18 (2011-10-10 11:44:06+00:00)
Title: AbstractCustomer fixed and tested

Because of the uncertainty of the formatting template, I utilized the one that was used for common plugin. So there are a lot of inconsistencies between the one that is in the repo and the one I have. So the list of changes that are not formatting for the AbstractCustomer are :

1) Line 79 - 87 : Fixed the constructor by removing the autowiring from above and adding the SpringContext. Also I added the customerRepo.add because there was nowhere to be found the code that adds a customerInfo in the Repo. I don't know where it should have been added.

2) Line 222 : The get Subscription was changed with the newly created (by me) FindSubscriptionForTariffAndCustomer that takes a Tariff and a CustomerInfo as inputs and returns the subscription in need.

3) Line 274: Math Round was removed because it wasn't used on purpose on my models. Using it doesn't give the [0,4) that we need but [0,4] which is incorrect.

On the other two files the corrections are easily found.