[Quantproject-developers] QuantProject/b4_Business/a2_Strategies AccountManager.cs, 1.5, 1.6
Brought to you by:
glauco_1
|
From: Marco M. <mi...@us...> - 2008-02-06 22:51:31
|
Update of /cvsroot/quantproject/QuantProject/b4_Business/a2_Strategies In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv21099/a2_Strategies Modified Files: AccountManager.cs Log Message: Improved description for one parameter in OpenPositions method Index: AccountManager.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b4_Business/a2_Strategies/AccountManager.cs,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** AccountManager.cs 6 Feb 2008 20:42:12 -0000 1.5 --- AccountManager.cs 6 Feb 2008 22:51:22 -0000 1.6 *************** *** 86,94 **** /// opening positions provided by the given weightedPositions /// </summary> static public void OpenPositions(WeightedPositions weightedPositions, ! Account account, double cashToAdd) { ! if(account.CashAmount == 0.0 && account.Transactions.Count == 0) ! account.AddCash(cashToAdd); if(weightedPositions == null || account == null) throw new Exception("Both parameters have to be set to valid objects!"); --- 86,98 ---- /// opening positions provided by the given weightedPositions /// </summary> + /// <param name="weightedPositions"></param> + /// <param name="account"></param> + /// <param name="initialCashForTheAccount">The initial cash for the account + /// with no transactions at all (totally empty account)</param> static public void OpenPositions(WeightedPositions weightedPositions, ! Account account, double initialCashIfTheAccountIsEmpty) { ! if(account.Transactions.Count == 0) ! account.AddCash(initialCashIfTheAccountIsEmpty); if(weightedPositions == null || account == null) throw new Exception("Both parameters have to be set to valid objects!"); |