Back to Top page.

EGTEvaluation< TP > Class Template Reference

Abstract base class template for evaluation operations. More...

#include <EGTEvaluation.h>

List of all members.

Public Types

typedef TP Pop
typedef Pop::Graph Graph

Public Methods

virtual ~EGTEvaluation ()
 Destructor.

virtual void Evaluate (Pop &pop)
 Performs evaluation operations to the Population.

virtual void Evaluate (Graph *pg)=0
 Determines the fitness value of the Graph.


Detailed Description

template<class TP>
class EGTEvaluation< TP >

Abstract base class template for evaluation operations.

An evaluation operation determines the fitness value of a Graph.
This class is a pure virtual (abstract) class and cannot be instantiated.
To make your derived class, you must define your own evaluation function.
It is assumed that <TP> is a subclass of EGTPopulation.


Member Typedef Documentation

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

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


Constructor & Destructor Documentation

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

Destructor.


Member Function Documentation

template<class TP>
virtual void EGTEvaluation< TP >::Evaluate Graph   pg [pure virtual]
 

Determines the fitness value of the Graph.

This function is pure virtual and cannot be instantiated, so it should be implemented in the derived class.

Parameters:
pg  [i/o] Graph to be evaluated

template<class TP>
virtual void EGTEvaluation< TP >::Evaluate Pop   pop [inline, virtual]
 

Performs evaluation operations to the Population.

This function is pure virtual and cannot be instantiated, so it should be implemented in the derived class.

Parameters:
pop  [i/o] Population to be evaluated


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