Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

GACPforORGSolverGene Class Reference

#include <GACPforORGSolver.h>

List of all members.

Public Methods

 GACPforORGSolverGene (OneRelatorGroup &group, const Word &w1, const Word &w2)
 GACPforORGSolverGene (const GACPforORGSolverGene &g)
GACPforORGSolverGene& operator= (const class GACPforORGSolverGene &g)
 ~GACPforORGSolverGene ()
double fitness ()
bool noConj () const
Word getWord1 () const
Word getWord2 () const
bool getHasShorterWords ()
bool getHasConjecture () const
Word getConjectureWord () const
GACPforORGSolverChromosomerandomChromosome (bool deg) const
void check ()
bool mutation ()
bool permutation ()

Static Public Methods

Word randomWord (int gens, int wLen)
double proximity (const Word &W1, const Word &W2, int *c1=0, int *c2=0)

Private Types

enum  _FindPos { ALL = 0, POSITIVE = 1, NEGATIVE = 2 }

Private Methods

void resize (unsigned pos, unsigned newsize)
void clear ()
void delChr (unsigned p1, unsigned p2)
void addChr (GACPforORGSolverChromosome *chr, unsigned p1, unsigned p2)
void findPos (_FindPos tp, unsigned num, unsigned &p1, unsigned &p2) const
int getExp ()

Private Attributes

Word theWord1
Word theWord2
OneRelatorGrouptheGroup
double fit
int nChr
GACPforORGSolverChromosome*** chromosomes
unsigned* lengthes
unsigned* sizes
bool hasConjecture
Word conjectureWord
bool hasShorterWords
int exp
int curExp

Static Private Attributes

UniformRandom r
unsigned jumpSize
const int ANY
const int NOONE

Friends

bool crossover (GACPforORGSolverGene &g1, GACPforORGSolverGene &g2)


Member Enumeration Documentation

enum GACPforORGSolverGene::_FindPos [private]
 

Enumeration values:
ALL  
POSITIVE  
NEGATIVE  

Definition at line 165 of file GACPforORGSolver.h.


Constructor & Destructor Documentation

GACPforORGSolverGene::GACPforORGSolverGene ( OneRelatorGroup & group,
const Word & w1,
const Word & w2 )
 

GACPforORGSolverGene::GACPforORGSolverGene ( const GACPforORGSolverGene & g )
 

GACPforORGSolverGene::~GACPforORGSolverGene ( )
 


Member Function Documentation

GACPforORGSolverGene& GACPforORGSolverGene::operator= ( const class GACPforORGSolverGene & g )
 

double GACPforORGSolverGene::fitness ( )
 

bool GACPforORGSolverGene::noConj ( ) const [inline]
 

Definition at line 77 of file GACPforORGSolver.h.

Word GACPforORGSolverGene::getWord1 ( ) const [inline]
 

Definition at line 79 of file GACPforORGSolver.h.

Word GACPforORGSolverGene::getWord2 ( ) const [inline]
 

Definition at line 80 of file GACPforORGSolver.h.

bool GACPforORGSolverGene::getHasShorterWords ( ) [inline]
 

Definition at line 83 of file GACPforORGSolver.h.

bool GACPforORGSolverGene::getHasConjecture ( ) const [inline]
 

Definition at line 84 of file GACPforORGSolver.h.

Word GACPforORGSolverGene::getConjectureWord ( ) const [inline]
 

Definition at line 85 of file GACPforORGSolver.h.

Word GACPforORGSolverGene::randomWord ( int gens,
int wLen ) [static]
 

double GACPforORGSolverGene::proximity ( const Word & W1,
const Word & W2,
int * c1 = 0,
int * c2 = 0 ) [static]
 

GACPforORGSolverChromosome* GACPforORGSolverGene::randomChromosome ( bool deg ) const
 

void GACPforORGSolverGene::check ( )
 

bool GACPforORGSolverGene::mutation ( )
 

bool GACPforORGSolverGene::permutation ( )
 

void GACPforORGSolverGene::resize ( unsigned pos,
unsigned newsize ) [private]
 

void GACPforORGSolverGene::clear ( ) [private]
 

void GACPforORGSolverGene::delChr ( unsigned p1,
unsigned p2 ) [private]
 

void GACPforORGSolverGene::addChr ( GACPforORGSolverChromosome * chr,
unsigned p1,
unsigned p2 ) [private]
 

void GACPforORGSolverGene::findPos ( _FindPos tp,
unsigned num,
unsigned & p1,
unsigned & p2 ) const [private]
 

int GACPforORGSolverGene::getExp ( ) [private]
 


Friends And Related Function Documentation

bool crossover ( GACPforORGSolverGene & g1,
GACPforORGSolverGene & g2 ) [friend]
 


Member Data Documentation

Word GACPforORGSolverGene::theWord1 [private]
 

Definition at line 130 of file GACPforORGSolver.h.

Word GACPforORGSolverGene::theWord2 [private]
 

Definition at line 132 of file GACPforORGSolver.h.

OneRelatorGroup& GACPforORGSolverGene::theGroup [private]
 

Definition at line 134 of file GACPforORGSolver.h.

UniformRandom GACPforORGSolverGene::r [static, private]
 

Definition at line 137 of file GACPforORGSolver.h.

double GACPforORGSolverGene::fit [private]
 

Definition at line 139 of file GACPforORGSolver.h.

int GACPforORGSolverGene::nChr [private]
 

Definition at line 140 of file GACPforORGSolver.h.

GACPforORGSolverChromosome*** GACPforORGSolverGene::chromosomes [private]
 

Definition at line 152 of file GACPforORGSolver.h.

unsigned* GACPforORGSolverGene::lengthes [private]
 

Definition at line 153 of file GACPforORGSolver.h.

unsigned* GACPforORGSolverGene::sizes [private]
 

Definition at line 154 of file GACPforORGSolver.h.

unsigned GACPforORGSolverGene::jumpSize [static, private]
 

Definition at line 155 of file GACPforORGSolver.h.

bool GACPforORGSolverGene::hasConjecture [private]
 

Definition at line 176 of file GACPforORGSolver.h.

Word GACPforORGSolverGene::conjectureWord [private]
 

Definition at line 178 of file GACPforORGSolver.h.

bool GACPforORGSolverGene::hasShorterWords [private]
 

Definition at line 183 of file GACPforORGSolver.h.

int GACPforORGSolverGene::exp [private]
 

Definition at line 192 of file GACPforORGSolver.h.

int GACPforORGSolverGene::curExp [private]
 

Definition at line 193 of file GACPforORGSolver.h.

const int GACPforORGSolverGene::ANY [static, private]
 

Definition at line 200 of file GACPforORGSolver.h.

const int GACPforORGSolverGene::NOONE [static, private]
 

Definition at line 201 of file GACPforORGSolver.h.


The documentation for this class was generated from the following file:
Generated at Tue Jun 19 09:49:53 2001 for Magnus Classes by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001