From da8b467b12c34a729664b19e45f716cbfbb2b932 Mon Sep 17 00:00:00 2001 From: evomarc Date: Fri, 16 Feb 2001 05:06:17 +0000 Subject: [PATCH] Only names modifications, to comply to EO strict rules :-) --- eo/src/eoDetTournamentSelect.h | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/eo/src/eoDetTournamentSelect.h b/eo/src/eoDetTournamentSelect.h index dcc04876..667577fb 100755 --- a/eo/src/eoDetTournamentSelect.h +++ b/eo/src/eoDetTournamentSelect.h @@ -44,23 +44,27 @@ template class eoDetTournamentSelect: public eoSelectOne { public: - /// (Default) Constructor. - eoDetTournamentSelect(unsigned _Tsize = 2 ):eoSelectOne(), Tsize(_Tsize) { + /* (Default) Constructor - + @param _tSize tournament size + */ + eoDetTournamentSelect(unsigned _tSize = 2 ):eoSelectOne(), tSize(_tSize) { // consistency check - if (Tsize < 2) { + if (tSize < 2) { cout << "Warning, Tournament size should be >= 2\nAdjusted\n"; - Tsize = 2; + tSize = 2; } } - /// Perform deterministic tournament - virtual const EOT& operator()(const eoPop& pop) + /* Perform deterministic tournament calling the appropriate fn + see selectors.h + */ + virtual const EOT& operator()(const eoPop& _pop) { - return deterministic_tournament(pop, Tsize); + return deterministic_tournament(_pop, tSize); } private: - unsigned Tsize; + unsigned tSize; }; //-----------------------------------------------------------------------------