Package org.jacop.search
Class IndomainDefaultValue<T extends Var>
java.lang.Object
org.jacop.search.IndomainDefaultValue<T>
- Type Parameters:
T
- type of variable being used in the search.
- All Implemented Interfaces:
Indomain<T>
IndomainDefaultValue - implements enumeration method based on the
selection of the default value for each variable first. If
selection of this value will not succeed it will try to assign
values with the default indomain method.
This method works only for IntVar.
- Version:
- 4.10
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
defIndomain
It defines the default indomain if there is no mapping provided. -
defValue
It defines for each variable and a value which should be used.
-
-
Constructor Details
-
IndomainDefaultValue
Constructor which specifies default values to be used if values are not in the domain a defualt indomain is used.- Parameters:
defaultValue
- default value used for each variable.defaultIndomain
- default indomain heuristic used.
-
-
Method Details
-
indomain
Description copied from interface:Indomain
It returns value within a variable which should be used in current assignment. This function only returns value, it is not required to do any changes to variable, its domain, etc.
-