#include <BranchingFactors.h>
Public Types | |
| enum | Preference { Minimum, Maximum } |
Public Member Functions | |
| BranchingFactors (Decomposition &decomposition, Preference=Minimum) | |
| Constructor. | |
| void | init (const vlist_type &uninstantiatedVariables) |
| Calculate the branching factors for all the variables. | |
| void | init (Variable &variable, Domain &domain) |
| void | done () |
| Clean up the cache. | |
| void | setVariable (const Variable &variable) |
| size_t | branchingFactor (const Value &value) const |
| const hash_map< const Value *, size_t > & | branchingFactors (const Variable &variable) const |
| bool | contains (const Variable &variable) const |
| void | clear () |
| Clear the entire cache. | |
| bool | empty () |
| Return `true' if the cache is empty, `false' otherwise. | |
|
|
|
|
|
Return the branching factor of a given value.
|
|
|
Return the map of branching factors for the values belonging to the domain of a given variable.
|
|
|
Check whether or not the cache contains data for the values of a given variable.
|
|
||||||||||||
|
Calculate the branching factors for the values in the domain of the given variable.
|
|
|
Set the variable whose values are to be looked at.
|
1.3.9.1