CaDesigner.cpp File Reference


Detailed Description

Implementation of GaCaRules, GaCaRulesSet and class CaDesigner with its base classes and observers.

Definition in file CaDesigner.cpp.

#include "config.h"
#include "CaDesigner.h"
#include "Color.h"

Include dependency graph for CaDesigner.cpp:

Go to the source code of this file.

Typedefs

typedef GASimpleGA TGeneticAlgorithm
 Change this typedef to use another GA algorithm.

Functions

std::ostream & operator<< (std::ostream &str, const GaCaRules &data)
 Simple serialization of GaCaRules object to string.
void writeStats (CaDesigner *solver, std::ostream &str)


Typedef Documentation

typedef GASimpleGA TGeneticAlgorithm

Change this typedef to use another GA algorithm.

Tested with GASimpleGA, GASteadyStateGA, GAIncrementalGA and GADemeGA.

Definition at line 62 of file CaDesigner.cpp.


Function Documentation

std::ostream& operator<< ( std::ostream &  str,
const GaCaRules rules 
)

Simple serialization of GaCaRules object to string.

Parameters:
str Standard output stream to write to.
rules GaCaRules object ought to be serialized.

Definition at line 144 of file CaDesigner.cpp.

References GaCaRules::size().

Here is the call graph for this function:

void @2::writeStats ( CaDesigner solver,
std::ostream &  str 
) [static]

Definition at line 561 of file CaDesigner.cpp.

References CaDesigner::avgFitness(), C_LIGHT_GREEN, C_NO_COLOR, C_YELLOW, CaDesigner::getStatistics(), AbstractProcessWatched::getTimeElapsed(), CaDesigner::minFitness(), and CaDesigner::stopAtGeneration().

Referenced by ResultsWatch::notify(), and FitnessWatch::notify().

Here is the call graph for this function:

Here is the caller graph for this function:


Generated on Sat May 2 16:39:33 2009 for nucad by  doxygen 1.5.4