00001 /* 00002 * $Revision: 1.2 $ 00003 * 00004 * last checkin: 00005 * $Author: gutwenger $ 00006 * $Date: 2007-11-08 16:10:37 +0100 (Do, 08 Nov 2007) $ 00007 ***************************************************************/ 00008 00050 #ifdef _MSC_VER 00051 #pragma once 00052 #endif 00053 00054 00055 #ifndef OGDF_MODULE_H 00056 #define OGDF_MODULE_H 00057 00058 00059 #include <ogdf/basic/basic.h> 00060 00061 namespace ogdf { 00062 00063 00074 class Module 00075 { 00076 public: 00078 enum ReturnType { 00079 retFeasible, 00080 retOptimal, 00081 retNoFeasibleSolution, 00082 retTimeoutFeasible, 00083 retTimeoutInfeasible, 00084 retError 00085 }; 00086 00088 Module() { } 00089 00090 virtual ~Module() { } 00091 00093 static bool isSolution(ReturnType ret) { 00094 return ret == retFeasible || ret == retOptimal || ret == retTimeoutFeasible; 00095 } 00096 }; 00097 00098 00099 } // end namespace ogdf 00100 00101 00102 #endif