Back to Top page.

EGTMutation< TP > Class Template Reference

Base class template for mutation operations. More...

#include <EGTMutation.h>

List of all members.

Public Types

typedef TP Pop
typedef Pop::Graph Graph
typedef EGTVector< const Graph * > Graphs
typedef Graph::SubGraph SubGraph

Public Methods

virtual ~EGTMutation ()
 Destructor.

virtual UInt Mutation (const Graphs &src, Pop &dest)
 Performs mutation operations to the Population.


Protected Methods

virtual bool DoMutation (const Graph &src, Pop &dest)
 Performs a mutation operation to the Graph.


Detailed Description

template<class TP>
class EGTMutation< TP >

Base class template for mutation operations.

A mutation operation partially reconstructs the given Graph by replacing its SubGraph with a randomly generated SubGraph.
It is assumed that <TP> is a subclass of EGPopulation.


Member Typedef Documentation

template<class TP>
typedef Pop::Graph EGTMutation< TP >::Graph
 

template<class TP>
typedef EGTVector<const Graph*> EGTMutation< TP >::Graphs
 

template<class TP>
typedef TP EGTMutation< TP >::Pop
 

template<class TP>
typedef Graph::SubGraph EGTMutation< TP >::SubGraph
 


Constructor & Destructor Documentation

template<class TP>
virtual EGTMutation< TP >::~EGTMutation   [inline, virtual]
 

Destructor.


Member Function Documentation

template<class TP>
bool EGTMutation< TP >::DoMutation const Graph   src,
Pop   dest
[protected, virtual]
 

Performs a mutation operation to the Graph.

Parameters:
src  [in] Graph to be manipulated by the mutation operation
dest  [out] Population of the next generation
Return values:
true  The mutation operation succeeded.
false  The mutation operation failed.

template<class TP>
UInt EGTMutation< TP >::Mutation const Graphs   src,
Pop   dest
[virtual]
 

Performs mutation operations to the Population.

Parameters:
src  [in] Array of Graphs to be manipulated by mutation operations
dest  [out] Population of the next generation
Returns:
Number of successful mutation operations


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