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

GHNConfig Class Reference

#include <Config.h>

List of all members.

Public Methods

 GHNConfig (int pop=50, int gen=-1, int cross=100, int mut=100, int elit=1, bool fit=true)
int populationSize () const
int numOfGenerations () const
double chanceOfCrossover () const
double chanceOfMutation () const
bool haveElitistSelection () const
bool haveStrongElitistSelection () const
bool haveFitnessScaling () const

Private Methods

void readFrom (istream &istr)
void printOn (ostream &ostr) const
void setVariable (const char *, int)

Private Attributes

int population
int generations
int crossover
int mutation
int elitistSelection
bool bFitnessScaling

Friends

ostream& operator<< (ostream &ostr, const GHNConfig &C)
istream& operator>> (istream &istr, GHNConfig &C)


Constructor & Destructor Documentation

GHNConfig::GHNConfig ( int pop = 50,
int gen = -1,
int cross = 100,
int mut = 100,
int elit = 1,
bool fit = true )
 


Member Function Documentation

int GHNConfig::populationSize ( ) const [inline]
 

Definition at line 56 of file Config.h.

int GHNConfig::numOfGenerations ( ) const [inline]
 

Definition at line 58 of file Config.h.

double GHNConfig::chanceOfCrossover ( ) const [inline]
 

Definition at line 60 of file Config.h.

double GHNConfig::chanceOfMutation ( ) const [inline]
 

Definition at line 63 of file Config.h.

bool GHNConfig::haveElitistSelection ( ) const [inline]
 

Definition at line 66 of file Config.h.

bool GHNConfig::haveStrongElitistSelection ( ) const [inline]
 

Definition at line 68 of file Config.h.

bool GHNConfig::haveFitnessScaling ( ) const [inline]
 

Definition at line 70 of file Config.h.

void GHNConfig::readFrom ( istream & istr ) [private]
 

Referenced by operator>>().

void GHNConfig::printOn ( ostream & ostr ) const [private]
 

Referenced by operator<<().

void GHNConfig::setVariable ( const char *,
int ) [private]
 


Friends And Related Function Documentation

ostream & operator<< ( ostream & ostr,
const GHNConfig & C ) [friend]
 

Definition at line 81 of file Config.h.

istream & operator>> ( istream & istr,
GHNConfig & C ) [friend]
 

Definition at line 87 of file Config.h.


Member Data Documentation

int GHNConfig::population [private]
 

Definition at line 115 of file Config.h.

int GHNConfig::generations [private]
 

Definition at line 116 of file Config.h.

int GHNConfig::crossover [private]
 

Definition at line 117 of file Config.h.

int GHNConfig::mutation [private]
 

Definition at line 118 of file Config.h.

int GHNConfig::elitistSelection [private]
 

Definition at line 119 of file Config.h.

bool GHNConfig::bFitnessScaling [private]
 

Definition at line 120 of file Config.h.


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