[Quantproject-developers] QuantProject/b7_Scripts/WalkForwardTesting/WalkForwardLag/WFLagDebugger
Brought to you by:
glauco_1
|
From: Glauco S. <gla...@us...> - 2008-08-19 17:13:51
|
Update of /cvsroot/quantproject/QuantProject/b7_Scripts/WalkForwardTesting/WalkForwardLag/WFLagDebugger In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv3611/b7_Scripts/WalkForwardTesting/WalkForwardLag/WFLagDebugger Modified Files: WFLagLogItem.cs Log Message: - the code has been cleaned up to avoid warnings - standard indentation has been applied Index: WFLagLogItem.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b7_Scripts/WalkForwardTesting/WalkForwardLag/WFLagDebugger/WFLagLogItem.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** WFLagLogItem.cs 28 Oct 2007 18:43:38 -0000 1.1 --- WFLagLogItem.cs 19 Aug 2008 17:13:13 -0000 1.2 *************** *** 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; *************** *** 74,78 **** } public WFLagLogItem( WFLagChosenTickers wFLagChosenTickers , ! DateTime lastOptimizationDate ) { // this.drivingPositions = --- 74,78 ---- } public WFLagLogItem( WFLagChosenTickers wFLagChosenTickers , ! DateTime lastOptimizationDate ) { // this.drivingPositions = *************** *** 95,100 **** /// <param name="lastOptimizationDate"></param> public WFLagLogItem( WFLagWeightedPositions wFLagWeightedPositions , ! int generationWhenTheBestGenomeWasFound , ! DateTime lastOptimizationDate ) { // this.drivingPositions = --- 95,100 ---- /// <param name="lastOptimizationDate"></param> public WFLagLogItem( WFLagWeightedPositions wFLagWeightedPositions , ! int generationWhenTheBestGenomeWasFound , ! DateTime lastOptimizationDate ) { // this.drivingPositions = *************** *** 103,107 **** // this.copy( wFLagChosenTickers.PortfolioWeightedPositions ); this.initialize( wFLagWeightedPositions , ! generationWhenTheBestGenomeWasFound , lastOptimizationDate ); } --- 103,107 ---- // this.copy( wFLagChosenTickers.PortfolioWeightedPositions ); this.initialize( wFLagWeightedPositions , ! generationWhenTheBestGenomeWasFound , lastOptimizationDate ); } *************** *** 112,120 **** // no generation number to log this.initialize( wFLagWeightedPositions , ! -999 , lastOptimizationDate ); } private void initialize( WFLagWeightedPositions wFLagWeightedPositions , ! int generationWhenTheBestGenomeWasFound , ! DateTime lastOptimizationDate ) { this.wFLagWeightedPositions = --- 112,120 ---- // no generation number to log this.initialize( wFLagWeightedPositions , ! -999 , lastOptimizationDate ); } private void initialize( WFLagWeightedPositions wFLagWeightedPositions , ! int generationWhenTheBestGenomeWasFound , ! DateTime lastOptimizationDate ) { this.wFLagWeightedPositions = *************** *** 138,142 **** // deserialize the fields from the info object, only if of the base clas ! for (Int32 i = 0 ; i < memberInfos.Length; i++) { // Don't deserialize fields for this class --- 138,142 ---- // deserialize the fields from the info object, only if of the base clas ! for (Int32 i = 0 ; i < memberInfos.Length; i++) { // Don't deserialize fields for this class *************** *** 147,151 **** // set the field to the deserialized value fieldInfo.SetValue( this , ! info.GetValue( fieldInfo.Name, fieldInfo.FieldType ) ); } } --- 147,151 ---- // set the field to the deserialized value fieldInfo.SetValue( this , ! info.GetValue( fieldInfo.Name, fieldInfo.FieldType ) ); } } *************** *** 170,174 **** catch( Exception ex1 ) { ! string exMessage = ex1.Message; } } --- 170,174 ---- catch( Exception ex1 ) { ! string exMessage = ex1.Message; } } *************** *** 197,204 **** // drivingWeightedPositions = this.getWeightedPositions( drivingPositions ); } ! catch( Exception ex2 ) { ! string errorMessage = ex2.Message; ! errorMessage = errorMessage; } } --- 197,203 ---- // drivingWeightedPositions = this.getWeightedPositions( drivingPositions ); } ! catch( Exception ex ) { ! string forBreakpoint = ex.Message; forBreakpoint = forBreakpoint + ""; } } *************** *** 241,245 **** { this.lastOptimizationDate = (DateTime)info.GetValue( "lastOptimizationDate" , ! this.lastOptimizationDate.GetType() ); this.deserializeWFLagWeightedPositions( info , context ); this.deserializeDrivingWeightedPositions( info , context ); --- 240,244 ---- { this.lastOptimizationDate = (DateTime)info.GetValue( "lastOptimizationDate" , ! this.lastOptimizationDate.GetType() ); this.deserializeWFLagWeightedPositions( info , context ); this.deserializeDrivingWeightedPositions( info , context ); *************** *** 248,261 **** } void ISerializable.GetObjectData( ! SerializationInfo info, StreamingContext context) { // get the set of serializable members for this class and base classes Type thisType = this.GetType(); ! MemberInfo[] mi = FormatterServices.GetSerializableMembers( thisType , context); // serialize the fields to the info object ! for (Int32 i = 0 ; i < mi.Length; i++) ! { string memberName = mi[i].Name; if ( ( memberName != "drivingPositions" ) && ( memberName != "portfolioPositions" ) ) --- 247,260 ---- } void ISerializable.GetObjectData( ! SerializationInfo info, StreamingContext context) { // get the set of serializable members for this class and base classes Type thisType = this.GetType(); ! MemberInfo[] mi = FormatterServices.GetSerializableMembers( thisType , context); // serialize the fields to the info object ! for (Int32 i = 0 ; i < mi.Length; i++) ! { string memberName = mi[i].Name; if ( ( memberName != "drivingPositions" ) && ( memberName != "portfolioPositions" ) ) |