[Quantproject-developers] QuantProject/b7_Scripts/General BasicScriptForBacktesting.cs, 1.2, 1.3
Brought to you by:
glauco_1
|
From: Glauco S. <gla...@us...> - 2008-04-13 16:27:24
|
Update of /cvsroot/quantproject/QuantProject/b7_Scripts/General In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv17650/b7_Scripts/General Modified Files: BasicScriptForBacktesting.cs Log Message: Abstract methods have been changed from void returning to specific type returning. Doing so, the concrete deriving classes will be forced to really create the required objects. Now the compiler can help the developer to not forget any needed object Index: BasicScriptForBacktesting.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b7_Scripts/General/BasicScriptForBacktesting.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** BasicScriptForBacktesting.cs 1 Apr 2008 21:26:14 -0000 1.2 --- BasicScriptForBacktesting.cs 13 Apr 2008 16:27:20 -0000 1.3 *************** *** 98,108 **** protected abstract string getFullPathFileNameForMain(); ! protected abstract void setEligiblesSelector(); ! protected abstract void setInSampleChooser(); ! protected abstract void setEndOfDayStrategy(); ! protected abstract void setEndOfDayStrategyBackTester(); private void checkIfPathsAreFine( --- 98,108 ---- protected abstract string getFullPathFileNameForMain(); ! protected abstract IEligiblesSelector getEligiblesSelector(); ! protected abstract IInSampleChooser getInSampleChooser(); ! protected abstract IEndOfDayStrategyForBacktester getEndOfDayStrategy(); ! protected abstract EndOfDayStrategyBackTester getEndOfDayStrategyBackTester(); private void checkIfPathsAreFine( *************** *** 187,194 **** private void initializeObjectsForTheBacktest() { ! this.setEligiblesSelector(); ! this.setInSampleChooser(); ! this.setEndOfDayStrategy(); ! this.setEndOfDayStrategyBackTester(); } --- 187,194 ---- private void initializeObjectsForTheBacktest() { ! this.eligiblesSelector = this.getEligiblesSelector(); ! this.inSampleChooser = this.getInSampleChooser(); ! this.endOfDayStrategy = this.getEndOfDayStrategy(); ! this.endOfDayStrategyBackTester = this.getEndOfDayStrategyBackTester(); } |