24 #include "parametersettable.h"
47 Genotype( QString,
bool compressed=
false );
57 void assign(
const Genotype* genotype );
61 unsigned int size()
const;
65 void setFitness(
double value );
69 double fitness()
const;
76 void setObjective(
int i,
double value );
80 double objective(
int i )
const;
84 int numOfObjectives()
const;
93 bool dominatedBy(
const Genotype* genotype );
103 void setRank(
double rank );
107 bool bit(
unsigned int i )
const;
109 void set(
unsigned int i );
111 void unset(
unsigned int i );
113 void toggle(
unsigned int i );
115 QString notes()
const;
117 void setNotes( QString notes );
119 int hammingDistance(
const Genotype* );
121 virtual void randomize();
123 QString toString()
const;
125 void fromString( QString );
127 QString toCompressedString()
const;
131 bool fromCompressedString( QString str );
144 unsigned int extractUInt(
unsigned int startPos,
unsigned int stopPos );
151 void insertUInt(
unsigned int value,
unsigned int startPos,
unsigned int stopPos );
157 virtual unsigned int geneToBitIndex(
unsigned int gene )
const;
162 virtual unsigned int bitToGeneIndex(
unsigned int bit )
const;
179 static void describe( QString type );
194 int objectiveToCompare;
211 void copyDataFrom(
Genotype* source );
218 void resize(
unsigned int newsize );