* \brief Which values to select for assignment * * \ingroup TaskModelIntBranch */
| 5145 | * \ingroup TaskModelIntBranch |
| 5146 | */ |
| 5147 | class BoolAssign : public ValBranch<BoolVar> { |
| 5148 | public: |
| 5149 | /// Which value selection |
| 5150 | enum Select { |
| 5151 | SEL_MIN, ///< Select smallest value |
| 5152 | SEL_MAX, ///< Select largest value |
| 5153 | SEL_RND, ///< Select random value |
| 5154 | SEL_VAL_COMMIT ///< Select value according to user-defined functions |
| 5155 | }; |
| 5156 | protected: |
| 5157 | /// Which value to select |
| 5158 | Select s; |
| 5159 | public: |
| 5160 | /// Initialize with selection strategy \a s |
| 5161 | BoolAssign(Select s = SEL_MIN); |
| 5162 | /// Initialize with random number generator \a r |
| 5163 | BoolAssign(Rnd r); |
| 5164 | /// Initialize with value function \a f and commit function \a c |
| 5165 | BoolAssign(BoolBranchVal v, BoolBranchCommit c); |
| 5166 | /// Return selection strategy |
| 5167 | Select select(void) const; |
| 5168 | }; |
| 5169 | |
| 5170 | /** |
| 5171 | * \defgroup TaskModelIntBranchAssign Value selection for assigning integer variables |
no outgoing calls
no test coverage detected