X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=src%2Fgenesorter.h;h=6ec4047cf006c25c92b0992ca189d59f94e07b9f;hb=dcd966c5fca7dca53ca1f605f70f13f019d29771;hp=384261196060dfaa19522a7deadc68e28784e6d1;hpb=d0abe1592fcbb10f4ac303e7b66c384624d4d439;p=germs.git diff --git a/src/genesorter.h b/src/genesorter.h index 3842611..6ec4047 100644 --- a/src/genesorter.h +++ b/src/genesorter.h @@ -25,6 +25,7 @@ class SortAction; class GeneOrder; +class Model; /** * Sorts genes @@ -39,13 +40,18 @@ class GeneSorter{ * Takes a GeneOrder, finds the actions to transform it into a sorted * permutation and returns the list with required actions. */ - ActionList sort(const GeneOrder& go1); + ActionList sort(const GeneOrder& go1, const Model& m); /** * Find the safe actions for this GeneOrder. */ ActionList safeActions(const GeneOrder& go1); + /** + * Calculates the score for an action given a gene order + */ + size_t scoreAction(const GeneOrder& go, SortAction& sa); + ~GeneSorter(){}; };