]> ruin.nu Git - germs.git/blobdiff - src/modelidentifier.h
started a refactoring with Model class to score different sort actions
[germs.git] / src / modelidentifier.h
index 1ed4809ff72319836c798cbdfd14c1c231183c86..ee163e315d278d427ce646f8a52b29ec98052271 100644 (file)
 
 #include "geneorder.h"
 
-#include <map>
+#include <queue>
 #include <string>
 #include <stdexcept>
 
 struct fann;
+class Model;
+
 
 /**
  * Identifies the model this gene order belongs to
@@ -35,7 +37,6 @@ struct fann;
  */
 class ModelIdentifier{
        public:
-               enum Model{Whirl,X,FatX,Zipper,Cloud};
 
                /**
                 * Creates a new identifier given an artificial neural network
@@ -52,7 +53,7 @@ class ModelIdentifier{
                 *
                 * \returns a map with the model as key and the score between -1 and 1
                 */
-               std::map<Model,double> identify(const GeneOrder& go);
+               std::priority_queue<std::pair<double,Model> > identify(const GeneOrder& go);
 
                ~ModelIdentifier();
        private: