Evocosm - A C++ Framework for Evolutionary Computing

Main Index

Created by Scott Robert Ladd at Coyote Gulch Productions.


Public Member Functions | List of all members
libevocosm::null_listener< OrganismType > Class Template Reference

An listener implementation that ignores all events. More...

#include <listener.h>

Inheritance diagram for libevocosm::null_listener< OrganismType >:
libevocosm::listener< OrganismType >

Public Member Functions

virtual void ping_generation_begin (const std::vector< OrganismType > &a_population, size_t a_iteration)
 Ping that a generation begins. More...
 
virtual void ping_generation_end (const std::vector< OrganismType > &a_population, size_t a_iteration)
 Ping that a generation ends. More...
 
virtual void ping_fitness_test_begin (const OrganismType &a_organism_number)
 Ping that a test run begins. More...
 
virtual void ping_fitness_test_end (const OrganismType &a_organism_number)
 Ping that a test run ends. More...
 
virtual void report (const std::string &a_text)
 Report non-specific text. More...
 
virtual void report_error (const std::string &a_text)
 Send error message. More...
 
virtual void run_complete (const std::vector< OrganismType > &a_population)
 Evocosm is finished. More...
 

Detailed Description

template<typename OrganismType>
class libevocosm::null_listener< OrganismType >

This listener ignores anything it hears.

Member Function Documentation

template<typename OrganismType>
virtual void libevocosm::null_listener< OrganismType >::ping_fitness_test_begin ( const OrganismType &  a_organism_number)
inlinevirtual

Ping that fitness testing of an organism begins.

Parameters
a_organism_numberOne-based number of the organism

Implements libevocosm::listener< OrganismType >.

template<typename OrganismType>
virtual void libevocosm::null_listener< OrganismType >::ping_fitness_test_end ( const OrganismType &  a_organism_number)
inlinevirtual

Ping that processing a generation has ended.

Parameters
a_organism_numberOne-based number of the organism

Implements libevocosm::listener< OrganismType >.

template<typename OrganismType>
virtual void libevocosm::null_listener< OrganismType >::ping_generation_begin ( const std::vector< OrganismType > &  a_population,
size_t  a_iteration 
)
inlinevirtual

Ping that processing a generation begins.

Parameters
a_populationPopulation before this generation's evolution
a_iterationOne-based number of the generation begun

Implements libevocosm::listener< OrganismType >.

template<typename OrganismType>
virtual void libevocosm::null_listener< OrganismType >::ping_generation_end ( const std::vector< OrganismType > &  a_population,
size_t  a_iteration 
)
inlinevirtual

Ping that processing a generation has ended.

Parameters
a_populationpopulation for which processing has ended
a_iterationOne-based number of the generation ended

Implements libevocosm::listener< OrganismType >.

template<typename OrganismType>
virtual void libevocosm::null_listener< OrganismType >::report ( const std::string &  a_text)
inlinevirtual

This event provide status text specific to a given type of evocosm. The base evocosm class does not call this function. The intention is that this function will be called from classes derived from evocosm to report progress, statistics, or other useful information.

Parameters
a_textApplication-specific text

Implements libevocosm::listener< OrganismType >.

template<typename OrganismType>
virtual void libevocosm::null_listener< OrganismType >::report_error ( const std::string &  a_text)
inlinevirtual

This event provides error text specific to a given type of evocosm. The base evocosm class does not call this function. The intention is that this function will be called from classes derived from evocosm to report problems.

Parameters
a_textApplication-specific error text

Implements libevocosm::listener< OrganismType >.

template<typename OrganismType>
virtual void libevocosm::null_listener< OrganismType >::run_complete ( const std::vector< OrganismType > &  a_population)
inlinevirtual

Invoked when an evocosm finishes all processing. This way God can rest on the seventh day.

Implements libevocosm::listener< OrganismType >.


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

© 1996-2005 Scott Robert Ladd. All rights reserved.
HTML documentation generated by Dimitri van Heesch's excellent Doxygen tool.