[Quantproject-developers] QuantProject/b4_Business/a1_Financial/a1_Instruments Instrument.cs,1.2,1.3
Brought to you by:
glauco_1
|
From: Glauco S. <gla...@us...> - 2004-08-23 22:37:00
|
Update of /cvsroot/quantproject/QuantProject/b4_Business/a1_Financial/a1_Instruments In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4406/b4_Business/a1_Financial/a1_Instruments Modified Files: Instrument.cs QuoteCache.cs Log Message: QuantProject.Data.DataProvider has been replaced by QuantProject.Data.DataProviders.HistoricalDataProvider Index: Instrument.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b4_Business/a1_Financial/a1_Instruments/Instrument.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Instrument.cs 17 Dec 2003 19:34:55 -0000 1.2 --- Instrument.cs 23 Aug 2004 22:36:47 -0000 1.3 *************** *** 24,28 **** using QuantProject.ADT; using QuantProject.ADT.Histories; ! using QuantProject.Data; namespace QuantProject.Business.Financial.Instruments --- 24,28 ---- using QuantProject.ADT; using QuantProject.ADT.Histories; ! using QuantProject.Data.DataProviders; namespace QuantProject.Business.Financial.Instruments *************** *** 44,48 **** public double GetMarketValue( ExtendedDateTime extendedDateTime ) { ! return DataProvider.GetMarketValue( this.Key , extendedDateTime ); } --- 44,48 ---- public double GetMarketValue( ExtendedDateTime extendedDateTime ) { ! return HistoricalDataProvider.GetMarketValue( this.Key , extendedDateTime ); } *************** *** 55,59 **** public DateTime GetNextMarketDay( DateTime dateTime ) { ! History history = DataProvider.GetOpenHistory( this.Key ); return history.GetNextDay( dateTime ); } --- 55,59 ---- public DateTime GetNextMarketDay( DateTime dateTime ) { ! History history = HistoricalDataProvider.GetOpenHistory( this.Key ); return history.GetNextDay( dateTime ); } *************** *** 61,65 **** public DateTime GetMarketDay( DateTime initialDateTime, int numberOfDaysAhead ) { ! History history = DataProvider.GetOpenHistory( this.Key ); return history.GetDay(initialDateTime, numberOfDaysAhead ); } --- 61,65 ---- public DateTime GetMarketDay( DateTime initialDateTime, int numberOfDaysAhead ) { ! History history = HistoricalDataProvider.GetOpenHistory( this.Key ); return history.GetDay(initialDateTime, numberOfDaysAhead ); } Index: QuoteCache.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b4_Business/a1_Financial/a1_Instruments/QuoteCache.cs,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** QuoteCache.cs 13 Oct 2003 21:58:24 -0000 1.1.1.1 --- QuoteCache.cs 23 Aug 2004 22:36:47 -0000 1.2 *************** *** 25,29 **** using QuantProject.ADT; using QuantProject.ADT.Histories; ! using QuantProject.Data; namespace QuantProject.Business.Financial.Instruments --- 25,29 ---- using QuantProject.ADT; using QuantProject.ADT.Histories; ! using QuantProject.Data.DataProviders; namespace QuantProject.Business.Financial.Instruments *************** *** 52,57 **** { foreach ( Object[] array in quoteIdentifierList ) ! DataProvider.Add( ((Instrument) array[ 0 ]).Key , (BarComponent) array[ 1 ] ); ! DataProvider.SetCachedHistories( startDateTime , endDateTime ); } --- 52,57 ---- { foreach ( Object[] array in quoteIdentifierList ) ! HistoricalDataProvider.Add( ((Instrument) array[ 0 ]).Key , (BarComponent) array[ 1 ] ); ! HistoricalDataProvider.SetCachedHistories( startDateTime , endDateTime ); } *************** *** 59,68 **** public static History GetOpenHistory( string instrumentKey ) { ! return DataProvider.GetOpenHistory( instrumentKey ); } public static History GetCloseHistory( string instrumentKey ) { ! return DataProvider.GetCloseHistory( instrumentKey ); } } --- 59,68 ---- public static History GetOpenHistory( string instrumentKey ) { ! return HistoricalDataProvider.GetOpenHistory( instrumentKey ); } public static History GetCloseHistory( string instrumentKey ) { ! return HistoricalDataProvider.GetCloseHistory( instrumentKey ); } } |