X-Git-Url: https://ruin.nu/git/?p=germs.git;a=blobdiff_plain;f=src%2Fmodel.h;fp=src%2Fmodel.h;h=4c5f46a8005956dd523cd4edabcf04aa1b2b23b9;hp=4869793c407fe7bb2800136df715b03733588089;hb=4462cded18dd80075c3622e5a87ca6f5f3c84f62;hpb=43b1052d74a207fe667b75e41d0c70c1189c2cc8 diff --git a/src/model.h b/src/model.h index 4869793..4c5f46a 100644 --- a/src/model.h +++ b/src/model.h @@ -49,11 +49,19 @@ class Model{ Model(Models::ModelImpl* model); /** + * Gives the score for the action on a given gene order. + * A better match for this model gives a higher score. */ double score(const SortAction& sa, const GeneOrder& go) const; + /** + * The name for the model used. + */ const char* name() const; + /** + * Creates a model from a name. + */ static Model modelFactory(const std::string& name); private: