test and documentation added

git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@1698 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
jhumeau 2010-03-18 11:34:06 +00:00
commit cad0320e57
25 changed files with 317 additions and 37 deletions

View file

@ -55,6 +55,14 @@ public:
*/
moIndexNeighborhood(unsigned int _neighborhoodSize):neighborhoodSize(_neighborhoodSize){}
/**
* Return the class id.
* @return the class name as a std::string
*/
virtual std::string className() const {
return "moIndexNeighborhood";
}
protected:
unsigned int neighborhoodSize;
};

View file

@ -86,7 +86,9 @@ public:
* Return the class id.
* @return the class name as a std::string
*/
virtual std::string className() const { return "moNeighborhood"; }
virtual std::string className() const {
return "moNeighborhood";
}
};
#endif

View file

@ -109,6 +109,14 @@ public:
return currentIndex;
}
/**
* Return the class id.
* @return the class name as a std::string
*/
virtual std::string className() const {
return "moOrderNeighborhood";
}
private:
unsigned int currentIndex;

View file

@ -97,6 +97,14 @@ public:
return neighborhoodSize > 0;
}
/**
* Return the class id.
* @return the class name as a std::string
*/
virtual std::string className() const {
return "moRndWithReplNeighborhood";
}
};
#endif

View file

@ -122,6 +122,14 @@ public:
return indexVector[maxIndex];
}
/**
* Return the class id.
* @return the class name as a std::string
*/
virtual std::string className() const {
return "moRndWithoutReplNeighborhood";
}
private:
unsigned int maxIndex;
std::vector<unsigned int> indexVector;