00001
00010
00011
00012
00013
00014
00015 #ifndef __GAL_GRAYCODECHROMOSOME_H
00016 #define __GAL_GRAYCODECHROMOSOME_H
00017
00018 #include <string>
00019 #include <sstream>
00020 #include "Chromosome.h"
00021 #include "Util.h"
00022
00023 namespace gal {
00032 template <class T> class GrayCodeChromosome : public Chromosome<T> {
00033 public:
00034
00038 GrayCodeChromosome(int length) : Chromosome<T>(length){}
00039
00044 std::list<char> const getInterpretedBitstring()
00045 {
00046
00047
00048
00049
00050
00051
00052
00053 return _bits;
00054 }
00055 };
00056 }
00057 #endif