T
- type of variable being used in the search.public class IndomainHierarchical<T extends Var> extends Object implements Indomain<T>
Constructor and Description |
---|
IndomainHierarchical(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.
|
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(Map<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
Indomain
indomain
in interface Indomain<T extends Var>
v
- defines variable for which value for assignment is suggested.RuntimeException
Copyright © 2022. All rights reserved.