Package org.jacop.search
Class IndomainHierarchical<T extends Var>
- java.lang.Object
-
- org.jacop.search.IndomainHierarchical<T>
-
- Type Parameters:
T
- type of variable being used in the search.
- All Implemented Interfaces:
Indomain<T>
public class IndomainHierarchical<T extends Var> extends java.lang.Object implements Indomain<T>
IndomainHierarchical - implements enumeration method based on the selection of the preferred indomain for each variable. The initial idea of having such functionality was proposed by Ben Weiner.- Version:
- 4.8
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
indomain(T v)
It returns value within a variable which should be used in current assignment.
-
-
-
Constructor Detail
-
IndomainHierarchical
public IndomainHierarchical(java.util.Map<T,Indomain<T>> hashmap, Indomain<T> defIndomain)
Constructor which specifies the mapping and default indomain to be used if mapping does not give specific indomain for some variables.- Parameters:
hashmap
- a mapping from variable to indomain heuristic used.defIndomain
- default indomain used if hashmap does not contain an entry.
-
-
Method Detail
-