[Quantproject-developers] QuantProject/b4_Business/a07_DataProviders HistoricalAdjustedQuoteProvide
Brought to you by:
glauco_1
Update of /cvsroot/quantproject/QuantProject/b4_Business/a07_DataProviders In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv5649/b4_Business/a07_DataProviders Modified Files: HistoricalAdjustedQuoteProvider.cs HistoricalQuoteProvider.cs HistoricalRawQuoteProvider.cs IHistoricalQuoteProvider.cs Log Message: - IHistoricalQuoteProvider now implements the ILogDescriptor interface - IHistoricalQuoteProvider.ShortDescription has been removed - HistoricalQuoteProvider implements the Description property by means of the method protected abstract string getDescription(); - the classes HistoricalAdjustedQuoteProvider and HistoricalRawQuoteProvider implement the protected getDescription() method Index: HistoricalRawQuoteProvider.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b4_Business/a07_DataProviders/HistoricalRawQuoteProvider.cs,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** HistoricalRawQuoteProvider.cs 28 Jan 2008 21:50:56 -0000 1.4 --- HistoricalRawQuoteProvider.cs 10 Feb 2008 14:28:09 -0000 1.5 *************** *** 34,45 **** public class HistoricalRawQuoteProvider : HistoricalQuoteProvider { - public override string ShortDescription - { - get - { - return "raw"; - } - } - public HistoricalRawQuoteProvider() { --- 34,37 ---- *************** *** 51,54 **** --- 43,51 ---- endOfDayDateTime.GetNearestExtendedDateTime() ); } + + protected override string getDescription() + { + return "raw"; + } } } Index: IHistoricalQuoteProvider.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b4_Business/a07_DataProviders/IHistoricalQuoteProvider.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** IHistoricalQuoteProvider.cs 28 Jan 2008 21:48:01 -0000 1.3 --- IHistoricalQuoteProvider.cs 10 Feb 2008 14:28:09 -0000 1.4 *************** *** 26,29 **** --- 26,30 ---- using QuantProject.ADT.Histories; using QuantProject.Data.DataTables; + using QuantProject.Business.Strategies.Logging; using QuantProject.Business.Timing; *************** *** 33,37 **** /// Interface to be implemented by historical quote providers /// </summary> ! public interface IHistoricalQuoteProvider { /// <summary> --- 34,38 ---- /// Interface to be implemented by historical quote providers /// </summary> ! public interface IHistoricalQuoteProvider : ILogDescriptor { /// <summary> *************** *** 50,57 **** EndOfDayHistory GetEndOfDayQuotes( string ticker , EndOfDayHistory endOfDayHistory ); - /// <summary> - /// Short description: it might be used for file names - /// </summary> - string ShortDescription { get; } } } --- 51,54 ---- Index: HistoricalAdjustedQuoteProvider.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b4_Business/a07_DataProviders/HistoricalAdjustedQuoteProvider.cs,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** HistoricalAdjustedQuoteProvider.cs 28 Jan 2008 21:50:40 -0000 1.5 --- HistoricalAdjustedQuoteProvider.cs 10 Feb 2008 14:28:09 -0000 1.6 *************** *** 34,45 **** public class HistoricalAdjustedQuoteProvider : HistoricalQuoteProvider { - public override string ShortDescription - { - get - { - return "adj"; - } - } - public HistoricalAdjustedQuoteProvider() { --- 34,37 ---- *************** *** 53,56 **** --- 45,53 ---- return marketValue; } + + protected override string getDescription() + { + return "adj"; + } } } Index: HistoricalQuoteProvider.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b4_Business/a07_DataProviders/HistoricalQuoteProvider.cs,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** HistoricalQuoteProvider.cs 28 Jan 2008 21:49:46 -0000 1.4 --- HistoricalQuoteProvider.cs 10 Feb 2008 14:28:09 -0000 1.5 *************** *** 33,41 **** public abstract class HistoricalQuoteProvider : IHistoricalQuoteProvider { ! public abstract string ShortDescription { get; } public HistoricalQuoteProvider() { } public abstract double GetMarketValue( string ticker , EndOfDayDateTime endOfDayDateTime ); --- 33,50 ---- public abstract class HistoricalQuoteProvider : IHistoricalQuoteProvider { ! public string Description ! { ! get ! { ! return "QtPrvdr_" + this.getDescription(); ! } ! } public HistoricalQuoteProvider() { } + + protected abstract string getDescription(); + public abstract double GetMarketValue( string ticker , EndOfDayDateTime endOfDayDateTime ); |