[Quantproject-developers] QuantProject/b1_ADT/Histories History.cs, 1.10, 1.11
Brought to you by:
glauco_1
|
From: Glauco S. <gla...@us...> - 2007-08-01 22:58:12
|
Update of /cvsroot/quantproject/QuantProject/b1_ADT/Histories In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv31239/b1_ADT/Histories Modified Files: History.cs Log Message: - public ICollection TimeLine has been added - public DateTime GetDateTime( int index ) has been added Index: History.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b1_ADT/Histories/History.cs,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** History.cs 18 Jun 2006 15:28:11 -0000 1.10 --- History.cs 1 Aug 2007 22:58:03 -0000 1.11 *************** *** 36,39 **** --- 36,47 ---- public class History : AdvancedSortedList { + /// <summary> + /// Returns the ICollection of DateTimes on which the + /// history is built + /// </summary> + public ICollection TimeLine + { + get { return this.Keys; } + } public History() : base() { *************** *** 81,84 **** --- 89,101 ---- /// <summary> + /// Returns the i-1_th element in the history timeline + /// </summary> + /// <param name="index"></param> + /// <returns></returns> + public DateTime GetDateTime( int index ) + { + return (DateTime)this.GetKey( index ); + } + /// <summary> /// Add an history item, if no collision (contemporary events) is expected /// </summary> |