X-Git-Url: https://ruin.nu/git/?p=germs.git;a=blobdiff_plain;f=src%2Fmodels.h;fp=src%2Fmodels.h;h=c1c96d1cb52addfdade3d847df8929b1536d8fd7;hp=f037071b0843684ce16ccb2e29e94aaac38aeb9a;hb=a45ea752862a45a0868940280aeb837af270cf22;hpb=ca651f2fd25147f88dbb27a27bc79bedcd9e4c81 diff --git a/src/models.h b/src/models.h index f037071..c1c96d1 100644 --- a/src/models.h +++ b/src/models.h @@ -46,6 +46,24 @@ class ModelImpl { virtual const char* name(); }; +/** + * A model that favors reversals. + */ +class Whirl : public ModelImpl { + public: + /** + * Returns a higher score for reversals and a lower score + * for all other actions. + * + * \see Model::score + */ + double score(const SortAction& sa, const GeneOrder& go); + + /** + * \see Model::name + */ + const char* name(); +}; /** * A model that favors symmetric reversal, resulting in an X-like