Created by Scott Robert Ladd at Coyote Gulch Productions.
#include <landscape.h>
Inheritance diagram for libevocosm::landscape< OrganismType >:
A floating-point organism, for example, could be tested by a fitness landscape that represents a function to be maximized. Or, an organsism describing the shape of wing could be tested by a landscape implementation that understands airflow.
OrganismType | - A concrete implementation of the organism template (e.g., the type of organism that "lives" in this landscape) |
libevocosm::landscape< OrganismType >::landscape | ( | listener & | a_listener | ) | [inline] |
Creates a new landscape object
a_listener | - a listener for events |
virtual libevocosm::landscape< OrganismType >::~landscape | ( | ) | [inline, virtual] |
A virtual destructor. By default, it does nothing; this is a placeholder that identifies this class as a potential base, ensuring that objects of a derived class will have their destructors called if they are destroyed through a base-class pointer.
virtual double libevocosm::landscape< OrganismType >::test | ( | vector< OrganismType > & | a_population | ) | const [pure virtual] |
Tests each chromosome in a_population for fitness.
a_population | - A vector containing organisms to be tested by the landscape. |
virtual double libevocosm::landscape< OrganismType >::test | ( | OrganismType & | a_organism, | |
bool | a_verbose = false | |||
) | const [pure virtual] |
Tests a single chromosome for fitness.
a_organism | - The organism to be tested by the landscape. | |
a_verbose | - Display verbose information for test |
© 1996-2005 Scott Robert Ladd. All rights reserved.
HTML documentation generated by Dimitri van Heesch's excellent Doxygen tool.