FitnessWatch Class Reference

#include <CaDesigner.h>

Inheritance diagram for FitnessWatch:

Inheritance graph
[legend]

List of all members.


Detailed Description

Observer which write out message when maxFitness value is increased.

Note:
This code was copy-pasted from FSS (Fast SAT Solver) project.

Definition at line 378 of file CaDesigner.h.


Public Member Functions

 FitnessWatch (CaDesigner *solver, std::ostream &streamTo)
 
Parameters:
solver Observed solver.

virtual ~FitnessWatch ()
virtual void notify ()
 Event notification, usually called by object implementing ISubject interface.
void reset ()

Private Attributes

Private * d

Constructor & Destructor Documentation

FitnessWatch ( CaDesigner solver,
std::ostream &  streamTo 
)

Parameters:
solver Observed solver.

Parameters:
streamTo Standard output stream to write to.

Definition at line 595 of file CaDesigner.cpp.

References CaDesigner::maxFitness().

Here is the call graph for this function:

~FitnessWatch (  )  [virtual]

Definition at line 602 of file CaDesigner.cpp.


Member Function Documentation

void notify (  )  [virtual]

Event notification, usually called by object implementing ISubject interface.

Note:
Design pattern observer

Implements IObserver.

Definition at line 606 of file CaDesigner.cpp.

References C_LIGHT_BLUE, C_NO_COLOR, CaDesigner::getStatistics(), CaDesigner::maxFitness(), and writeStats().

Here is the call graph for this function:

void reset (  ) 

Definition at line 627 of file CaDesigner.cpp.

Referenced by main().

Here is the caller graph for this function:


Member Data Documentation

Private* d [private]

Definition at line 390 of file CaDesigner.h.


The documentation for this class was generated from the following files:
Generated on Sat May 2 16:39:38 2009 for nucad by  doxygen 1.5.4