00001 // MC.h -- The MC decomposition algorithm interface. 00002 00003 /* 00004 * Copyright (C) 1997, 1998, 2003 Tudor Hulubei <tudor@hulubei.net>. 00005 * 00006 * This library is free software; you can redistribute it and/or modify 00007 * it under the terms of the GNU Lesser General Public License as 00008 * published by the Free Software Foundation; either version 2, or (at 00009 * your option) any later version. 00010 * 00011 * This library is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU Lesser General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU Lesser General Public 00017 * License along with this library; if not, write to the Free Software 00018 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA, 00019 * 02111-1307, USA. 00020 */ 00021 00022 // $Id: MC_8h-source.html,v 1.1 2005/05/25 12:37:18 tudor Exp $ 00023 00024 #ifndef _CSP_DECOMPOSITIONS_MC_H 00025 #define _CSP_DECOMPOSITIONS_MC_H 00026 00027 00028 CSP_NAMESPACE_BEGIN(csp); 00029 CSP_NAMESPACE_BEGIN(decompositions); 00030 00031 00036 class CSP_API MC : 00037 public Decomposition 00038 { 00039 public: 00048 MC(Problem& problem, 00049 Filter& filter, 00050 Retraction& retraction, 00051 Randomizer& randomizer) : 00052 Decomposition( 00053 L"Maintaining Consistency", 00054 L"MC", 00055 problem, 00056 filter, 00057 retraction, 00058 randomizer) {} 00059 00060 private: 00062 MC(const MC&); 00063 00065 MC& operator=(const MC&); 00066 00072 virtual void decompose(); 00073 }; 00074 00075 00076 CSP_NAMESPACE_END(decompositions); 00077 CSP_NAMESPACE_END(csp); 00078 00079 00080 #endif // _CSP_DECOMPOSITIONS_MC_H 00081 00082 // Local Variables: 00083 // mode: C++ 00084 // End:
1.3.9.1