moItRandNextMove< M > Class Template Reference

One of the possible moNextMove. More...

#include <moItRandNextMove.h>

Inheritance diagram for moItRandNextMove< M >:

moNextMove< M > eoBF< M &, const M::EOType &, bool > eoFunctorBase List of all members.

Public Member Functions

 moItRandNextMove (moRandMove< M > &__rand_move, unsigned int __max_iter)
 The constructor.
bool operator() (M &__move, const EOT &__sol)
 Generation of a new move.

Private Types

typedef M::EOType EOT
 Alias for the type.

Private Attributes

moRandMove< M > & rand_move
 A move generator (generally randomly).
unsigned int max_iter
 Iteration maximum number.
unsigned int num_iter
 Iteration current number.

Detailed Description

template<class M>
class moItRandNextMove< M >

One of the possible moNextMove.

This class is a move (moMove) generator with a bound for the maximum number of iterations.

Definition at line 22 of file moItRandNextMove.h.


Constructor & Destructor Documentation

template<class M>
moItRandNextMove< M >::moItRandNextMove ( moRandMove< M > &  __rand_move,
unsigned int  __max_iter 
) [inline]

The constructor.

Parameters only for initialising the attributes.

Parameters:
__rand_move the random move generator.
__max_iter the iteration maximum number.

Definition at line 37 of file moItRandNextMove.h.


Member Function Documentation

template<class M>
bool moItRandNextMove< M >::operator() ( M &  __move,
const EOT __sol 
) [inline, virtual]

Generation of a new move.

If the maximum number is not already reached, the current move is forgotten and remplaced by another one.

Parameters:
__move the current move.
__sol the current solution.
Returns:
FALSE if the maximum number of iteration is reached, else TRUE.

Implements eoBF< M &, const M::EOType &, bool >.

Definition at line 52 of file moItRandNextMove.h.

References moItRandNextMove< M >::max_iter, moItRandNextMove< M >::num_iter, and moItRandNextMove< M >::rand_move.


The documentation for this class was generated from the following file:
Generated on Wed Jun 27 15:12:37 2007 for PARADISEO-MO by  doxygen 1.5.2