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:
parent
69fc53a6be
commit
822c4b0fd7
3 changed files with 1 additions and 4 deletions
32
branches/newMo/src/unused/moEmptyNeighbor.h
Normal file
32
branches/newMo/src/unused/moEmptyNeighbor.h
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue