From 2b1b02f16257a37fff7d6cc56aaa728174ef46f9 Mon Sep 17 00:00:00 2001 From: jhumeau Date: Thu, 26 Aug 2010 09:28:25 +0000 Subject: [PATCH] git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@1918 331e1502-861f-0410-8da2-ba01fb791d7f --- .../src/problems/permutation/moIndexedSwapNeighbor.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/trunk/paradiseo-mo/src/problems/permutation/moIndexedSwapNeighbor.h b/trunk/paradiseo-mo/src/problems/permutation/moIndexedSwapNeighbor.h index 0b53dbad8..f1ece57ec 100644 --- a/trunk/paradiseo-mo/src/problems/permutation/moIndexedSwapNeighbor.h +++ b/trunk/paradiseo-mo/src/problems/permutation/moIndexedSwapNeighbor.h @@ -62,6 +62,14 @@ public: _solution.invalidate(); } + /** + * Return the class Name + * @return the class name as a std::string + */ + virtual std::string className() const { + return "moIndexedSwapNeighbor"; + } + /** * apply the swap to restore the solution (use by moFullEvalByModif) * @param _solution the solution to move back @@ -90,6 +98,8 @@ public: _first = key - (n - 1) * n / 2; _second = N - 1 - (n - 1 - _first); } + + };