[Quantproject-developers] QuantProject/b4_Business/a2_Strategies/Optimizing/Decoding BasicDecoderF
Brought to you by:
glauco_1
|
From: Glauco S. <gla...@us...> - 2008-02-27 21:45:28
|
Update of /cvsroot/quantproject/QuantProject/b4_Business/a2_Strategies/Optimizing/Decoding In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv957/a2_Strategies/Optimizing/Decoding Modified Files: BasicDecoderForTestingPositions.cs Log Message: - the class is abstract, now - the method protected abstract string getDescription() has been added Index: BasicDecoderForTestingPositions.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b4_Business/a2_Strategies/Optimizing/Decoding/BasicDecoderForTestingPositions.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** BasicDecoderForTestingPositions.cs 22 Feb 2008 20:57:58 -0000 1.2 --- BasicDecoderForTestingPositions.cs 27 Feb 2008 21:45:23 -0000 1.3 *************** *** 37,41 **** /// can be decoded only tickers /// </summary> ! public class BasicDecoderForTestingPositions : IDecoderForTestingPositions { --- 37,41 ---- /// can be decoded only tickers /// </summary> ! public abstract class BasicDecoderForTestingPositions : IDecoderForTestingPositions { *************** *** 44,57 **** protected EligibleTickers eligibleTickers; protected ReturnsManager returnsManager; ! ! public virtual string Description { get { ! string description = ! "BasicDecoderForTestingPositions_DecodedOnlyTickers_EqualWeights"; return description; } } public BasicDecoderForTestingPositions() --- 44,72 ---- protected EligibleTickers eligibleTickers; protected ReturnsManager returnsManager; ! ! /// <summary> ! /// short description to be used for the file name ! /// </summary> ! /// <returns></returns> ! protected abstract string getDescription(); ! ! public string Description { get { ! string description = "Dcdr_" + this.getDescription(); return description; } } + + // public virtual string Description + // { + // get + // { + // string description = + // "BasicDecoderForTestingPositions_DecodedOnlyTickers_EqualWeights"; + // return description; + // } + // } public BasicDecoderForTestingPositions() *************** *** 132,137 **** { SignedTickers signedTickers = this.decodeSignedTickers(); TestingPositions testingPositions = new TestingPositions( ! new WeightedPositions( this.getWeights(), signedTickers) ); return testingPositions; --- 147,153 ---- { SignedTickers signedTickers = this.decodeSignedTickers(); + double[] weights = this.getWeights(); TestingPositions testingPositions = new TestingPositions( ! new WeightedPositions( weights , signedTickers.Tickers ) ); return testingPositions; *************** *** 167,173 **** ReturnsManager returnsManager) { - this.setTickerRelatedGeneValues(); this.decode_updateProtectedMembers(encoded , eligibleTickers , returnsManager); TestingPositions meaning = new TestingPositions(); if ( this.isDecodable() ) --- 183,189 ---- ReturnsManager returnsManager) { this.decode_updateProtectedMembers(encoded , eligibleTickers , returnsManager); + this.setTickerRelatedGeneValues(); TestingPositions meaning = new TestingPositions(); if ( this.isDecodable() ) |