T - type of variable being used in the search.public class IndomainHierarchical<T extends Var> extends Object implements Indomain<T>
| Constructor and Description |
|---|
IndomainHierarchical(HashMap<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.
|
| Modifier and Type | Method and Description |
|---|---|
int |
indomain(T v)
It returns value within a variable which should be used in current
assignment.
|
public IndomainHierarchical(HashMap<T,Indomain<T>> hashmap, Indomain<T> defIndomain)
hashmap - a mapping from variable to indomain heuristic used.defIndomain - default indomain used if hashmap does not contain an entry.public int indomain(T v) throws RuntimeException
Indomainindomain in interface Indomain<T extends Var>v - defines variable for which value for assignment is suggested.RuntimeExceptionCopyright © 2016. All rights reserved.