Doc and tests added

git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@1706 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
jhumeau 2010-03-23 15:14:04 +00:00
commit baf31d0c30
25 changed files with 159 additions and 26 deletions

View file

@ -54,6 +54,13 @@ public:
*/
moNeighborhood(){}
/**
* @return if the neighborhood is random
*/
virtual bool isRandom(){
return false;
}
/**
* Test if a solution has (again) a Neighbor
* @param _solution the related solution

View file

@ -33,6 +33,13 @@ Contact: paradiseo-help@lists.gforge.inria.fr
#include <neighborhood/moNeighborhood.h>
template< class Neighbor >
class moRndNeighborhood : virtual public moNeighborhood<Neighbor>{};
class moRndNeighborhood : virtual public moNeighborhood<Neighbor>{
public:
bool isRandom(){
return true;
}
};
#endif