Created by Scott Robert Ladd at Coyote Gulch Productions.
#include <evocosm.h>
Inheritance diagram for libevocosm::evocosm< OrganismType, LandscapeType >:
OrganismType | - The type of organism | |
LandscapeType | - The type of landscape |
|
Creates a new evocosm. Think of an evocosm as a director, a tool for associating organisms with their environment. Note that these arguments are modifiable references, and that the referenced objects must continue to exist during the lifetime of the evocosm.
|
|
Creates a new evocosm identical to an existing one.
|
|
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. |
|
Assigns an existing object the state of another.
|
|
Use with caution! This function provides direct read-write access to an evocosm's population. This is necessary when the organisms need special manipulation, such as when they can not be randomized by a default constructor.
|
|
A generation represents a cycle in the life of an evocosm; this function performs one sequence of fitness testing & scaling, void append(vector<gccga_organism> a_population, size_t a_size); reporting, migration, breeding, and mutation. This method can be replaced by in a derived class to define a different processing sequence; the default sequence defined here is good for most evolutionary algorithms I've created.
|
|
Calling this function sets a flag that tells the evocosm to stop running as soon as possible. |
© 1996-2005 Scott Robert Ladd. All rights reserved.
HTML documentation generated by Dimitri van Heesch's excellent Doxygen tool.