encore un peu de nettoyage

git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@1658 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
jhumeau 2010-01-20 13:10:08 +00:00
commit 822c4b0fd7
3 changed files with 1 additions and 4 deletions

View file

@ -114,8 +114,7 @@ public:
private:
// attention il faut que le constructeur vide existe
//(Pointeurs) on the best and the current neighbor
//Pointer on the best and the current neighbor
Neighbor* best;
Neighbor* current;

View file

@ -42,7 +42,6 @@
#include <continuator/moTrueContinuator.h>
#include <eval/moEval.h>
#include <eval/moFullEvalBitNeighbor.h>
#include <eval/moFullEvalByCopy.h>
#include <eval/moFullEvalByModif.h>
@ -52,7 +51,6 @@
#include <neighborhood/moBackableNeighbor.h>
#include <neighborhood/moBitNeighbor.h>
#include <neighborhood/moBitNeighborhood.h>
#include <neighborhood/moEmptyNeighbor.h>
#include <neighborhood/moNeighbor.h>
#include <neighborhood/moNeighborhood.h>

View file

@ -0,0 +1,32 @@
#ifndef _emptyNeighbor_h
#define _emptyNeighbor_h
#include <neighborhood/moNeighbor.h>
/*
contener of the neighbor information
*/
template< class EOT , class Fitness >
class moEmptyNeighbor : public moNeighbor<EOT,Fitness>
{
public:
typedef EOT EOType ;
// empty constructor
moEmptyNeighbor() : moNeighbor<EOType, Fitness>() { } ;
/*
make the evaluation of the current neighbor and update the information on this neighbor
*/
virtual void eval(EOT & solution) { }
/*
move the solution
*/
virtual void move(EOT & solution) { }
// true if the this is better than the neighbor __neighbor
virtual bool betterThan(moNeighbor<EOT,Fitness> & __neighbor) { return true; }
};
#endif