From: Stefan F. <ste...@we...> - 2012-09-02 07:28:01
|
Several other changes have been implemented recently: *** Removed old (customized) ClassLoader code There has been a customized ClassLoader for Rails, which was inherited from the Colossus project. As most of the functions were not required for Rails I have removed most of the that old code now. Most likely this will allow to use Webstart to distribute Rails2.0 test releases. *** ChangeStack simplified I have decided to separate the Report and Comment facilities from the ChangeStack. This makes it possible to add the facility to comment the end of an operating round without making it a separate ChangeSet. This again allowed to simplify the ChangeStack implementation. *** Management of Cash refactored Similar to the new portfolios, money is stored inside a Wallet (more on the details behind the scene in a separate mail). This easily allows to store all kind of CountableItems, for which money is only one example (so in principle it is easy that Rails supports several currencies). To move money from one owner to the other the following static methods are used: Currency.wire(MoneyOwner from, int amount, MoneyOwner to) Currency.fromBank(int amount, MoneyOwner to) Currency.toBank(MoneyOwner from, int amount) The return value is the formatted String of the amount transferred and can be used for the message to the reportWindow. Those replace the direct creation of a CashMove(...). |