[Quantproject-developers] QuantProject/b1_ADT/Histories History.cs, 1.11, 1.12
Brought to you by:
glauco_1
|
From: Marco M. <mi...@us...> - 2007-09-26 21:58:40
|
Update of /cvsroot/quantproject/QuantProject/b1_ADT/Histories In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv476/Histories Modified Files: History.cs Log Message: Added method: ContainsAllTheDatesIn ( History comparingHistory ) Index: History.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b1_ADT/Histories/History.cs,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** History.cs 1 Aug 2007 22:58:03 -0000 1.11 --- History.cs 26 Sep 2007 21:58:18 -0000 1.12 *************** *** 80,83 **** --- 80,99 ---- } + /// <summary> + /// Returns true iif current history contains all the + /// dates contained in the given comparingHistory + /// </summary> + /// <param name="comparingHistory">Provides the relevant dates to be checked + /// in the current History</param> + /// <returns></returns> + public bool ContainsAllTheDatesIn( History comparingHistory ) + { + bool returnValue = true; + foreach ( DateTime dateTime in comparingHistory.Keys ) + if ( ! this.ContainsKey( dateTime ) ) + returnValue = false; + return returnValue; + } + public void Interpolate( ICollection dateTimeCollection , IInterpolationMethod interpolationMethod ) |