Observing::GaObserverAdapter Class Reference

This is adapter class for GaObserver interface. It overrides all methods from the interface, so classes inherited from this class can implements only necessary methods. Detail description of the methods is given in specification of GaObserver interface. More...

#include <D:/Temp/vs/gal/source/Observing.h>

Inherits Observing::GaObserver.

List of all members.

Public Member Functions

virtual void GACALL StatisticUpdate (const GaStatistics &statistics, const GaAlgorithm &algorithm)
 This method handles event which is raised at the end of a generation by the algorithm.
virtual void GACALL NewBestChromosome (const GaChromosome &newChromosome, const GaAlgorithm &algorithm)
 This method handles event which is raised when algorithm finds new chromosome (solution) which is better then the best chromosome of previous generation.
virtual void GACALL EvolutionStateChanged (GaAlgorithmState newState, const GaAlgorithm &algorithm)
 This method handles event which is raised when state of algorithm's execution is change.


Detailed Description

This is adapter class for GaObserver interface. It overrides all methods from the interface, so classes inherited from this class can implements only necessary methods. Detail description of the methods is given in specification of GaObserver interface.


Member Function Documentation

virtual void GACALL Observing::GaObserverAdapter::StatisticUpdate ( const GaStatistics statistics,
const GaAlgorithm algorithm 
) [inline, virtual]

This method handles event which is raised at the end of a generation by the algorithm.

Parameters:
statistics reference to object with statistical information.
algorithm reference the algorithm which raised event.

Implements Observing::GaObserver.

virtual void GACALL Observing::GaObserverAdapter::NewBestChromosome ( const GaChromosome newChromosome,
const GaAlgorithm algorithm 
) [inline, virtual]

This method handles event which is raised when algorithm finds new chromosome (solution) which is better then the best chromosome of previous generation.

Parameters:
newChromosome reference to the chromosome.
algorithm reference the algorithm which raised event.

Implements Observing::GaObserver.

virtual void GACALL Observing::GaObserverAdapter::EvolutionStateChanged ( GaAlgorithmState  newState,
const GaAlgorithm algorithm 
) [inline, virtual]

This method handles event which is raised when state of algorithm's execution is change.

Parameters:
newState new state of algorithm's execution
algorithm reference the algorithm which raised event.

Implements Observing::GaObserver.


The documentation for this class was generated from the following file:

Genetic Algorithm Library
Coolsoft Software Development