Changing the design by adding basic tuner
[satune.git] / src / Tuner / randomtuner.h
index 36f8531365ac36132db1194a61c3493c6acbdf9d..bc063f05f712f6dd2608ee619d67c3134468668b 100644 (file)
@@ -3,41 +3,18 @@
 #include "classlist.h"
 #include "structs.h"
 #include "multituner.h"
+#include "basictuner.h"
 
 /**
  * This is a Tuner which is being used for 
  */
-class RandomTuner {
+class RandomTuner : public BasicTuner {
 public:
        RandomTuner(uint _budget, uint _timeout);
-       ~RandomTuner();
-       void addProblem(const char *filename);
-       void addTuner(SearchTuner *tuner);
        void tune();
-       void printData();
-       CMEMALLOC;
 protected:
-       long long evaluate(Problem *problem, TunerRecord *tuner);
-       SearchTuner *mutateTuner(SearchTuner *oldTuner, uint k);
-        void updateTimeout(Problem *problem, long long metric);
-        bool randomMutation(SearchTuner *tuner);
-        bool tunerExists(SearchTuner *tunerRec);
-       /**
-         * returns the index of the tuner which is subtune of
-         * the newTuner 
-         * @param newTuner
-         * @return 
-         */
-        int subtuneIndex(SearchTuner *newTuner);
-        
+        bool randomMutation(SearchTuner *tuner);        
        TunerRecord *tune(SearchTuner *tuner);
-       Vector<TunerRecord *> allTuners;
-       Vector<TunerRecord *> explored;
-       Vector<Problem *> problems;
-       Vector<TunerRecord *> tuners;
-       uint budget;
-       uint timeout;
-       int execnum;
 };
 
 #endif