this is for generically accessing the rank measure regardless of which strategy has been set */
| 924 | /* this is for generically accessing the rank measure regardless of |
| 925 | which strategy has been set */ |
| 926 | int MinorValue::getUtility () const |
| 927 | { |
| 928 | switch (this->GetRankingStrategy()) |
| 929 | { |
| 930 | case 1: return this->rankMeasure1(); |
| 931 | case 2: return this->rankMeasure2(); |
| 932 | case 3: return this->rankMeasure3(); |
| 933 | case 4: return this->rankMeasure4(); |
| 934 | case 5: return this->rankMeasure5(); |
| 935 | default: return this->rankMeasure1(); |
| 936 | } |
| 937 | } |
| 938 | |
| 939 | /* here are some sensible caching strategies: */ |
| 940 | int MinorValue::rankMeasure1 () const |
no test coverage detected