X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=src%2Fmodels.h;h=c1c96d1cb52addfdade3d847df8929b1536d8fd7;hb=80163771173997d308e8f11815c5d9a92d8ba8f5;hp=f037071b0843684ce16ccb2e29e94aaac38aeb9a;hpb=4462cded18dd80075c3622e5a87ca6f5f3c84f62;p=germs.git 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