[Quantproject-developers] QuantProject/b4_Business/a1_Financial/a2_Accounting/AccountProviding Sim
Brought to you by:
glauco_1
|
From: Glauco S. <gla...@us...> - 2008-09-29 21:14:07
|
Update of /cvsroot/quantproject/QuantProject/b4_Business/a1_Financial/a2_Accounting/AccountProviding In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv13426/a2_Accounting/AccountProviding Modified Files: SimpleAccountProvider.cs Log Message: The new revision moves toward an intraday enabled framework. EndOfDayDate time has been removed, DateTime is used now. The code has been changed accordingly. Index: SimpleAccountProvider.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b4_Business/a1_Financial/a2_Accounting/AccountProviding/SimpleAccountProvider.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** SimpleAccountProvider.cs 12 Mar 2008 21:54:42 -0000 1.1 --- SimpleAccountProvider.cs 29 Sep 2008 21:13:46 -0000 1.2 *************** *** 3,7 **** SimpleAccountProvider.cs ! Copyright (C) 2008 Marco Milletti --- 3,7 ---- SimpleAccountProvider.cs ! Copyright (C) 2008 Marco Milletti *************** *** 19,23 **** along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ! */ using System; --- 19,23 ---- along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ! */ using System; *************** *** 35,38 **** --- 35,39 ---- /// on orders /// </summary> + [Serializable] public class SimpleAccountProvider : IAccountProvider { *************** *** 41,53 **** } ! public Account GetAccount( IEndOfDayTimer timer , ! IHistoricalQuoteProvider historicalQuoteProvider ) { ! Account account = ! new Account( "SimpleAccount" , timer , ! new HistoricalEndOfDayDataStreamer( timer , ! historicalQuoteProvider ) , ! new HistoricalEndOfDayOrderExecutor( timer , ! historicalQuoteProvider ) ); return account; } --- 42,55 ---- } ! public Account GetAccount( ! Timer timer , HistoricalMarketValueProvider historicalMarketValueProvider ) { ! Account account = ! new Account( ! "SimpleAccount" , timer , ! new HistoricalEndOfDayDataStreamer( ! timer , historicalMarketValueProvider ) , ! new HistoricalEndOfDayOrderExecutor( ! timer , historicalMarketValueProvider ) ); return account; } |