* \brief Recording AFC information for Boolean variables * * \ingroup TaskModelIntBranch */
| 4449 | * \ingroup TaskModelIntBranch |
| 4450 | */ |
| 4451 | class BoolAFC : public AFC { |
| 4452 | public: |
| 4453 | /** |
| 4454 | * \brief Construct as not yet initialized |
| 4455 | * |
| 4456 | * The only member functions that can be used on a constructed but not |
| 4457 | * yet initialized AFC storage is init or the assignment operator. |
| 4458 | * |
| 4459 | */ |
| 4460 | BoolAFC(void); |
| 4461 | /// Copy constructor |
| 4462 | BoolAFC(const BoolAFC& a); |
| 4463 | /// Assignment operator |
| 4464 | BoolAFC& operator =(const BoolAFC& a); |
| 4465 | /** |
| 4466 | * \brief Initialize for Boolean variables \a x and decay factor \a d |
| 4467 | * |
| 4468 | * If several AFC objects are created for a space or its clones, |
| 4469 | * the AFC values are shared between spaces. If the values should |
| 4470 | * not be shared, \a share should be false. |
| 4471 | */ |
| 4472 | BoolAFC(Home home, const BoolVarArgs& x, double d=1.0, bool share=true); |
| 4473 | /** |
| 4474 | * \brief Initialize for Boolean variables \a x with decay factor \a d |
| 4475 | * |
| 4476 | * This member function can only be used once and only if the |
| 4477 | * AFC storage has been constructed with the default constructor. |
| 4478 | * |
| 4479 | * If several AFC objects are created for a space or its clones, |
| 4480 | * the AFC values are shared between spaces. If the values should |
| 4481 | * not be shared, \a share should be false. |
| 4482 | */ |
| 4483 | void init(Home home, const BoolVarArgs& x, double d=1.0, bool share=true); |
| 4484 | }; |
| 4485 | |
| 4486 | } |
| 4487 |