JaCoP.set.search
Class IndomainSetMin<T extends SetVar>

java.lang.Object
  extended by JaCoP.set.search.IndomainSetMin<T>
Type Parameters:
T - type of variable being used in search.
All Implemented Interfaces:
Indomain<T>

public class IndomainSetMin<T extends SetVar>
extends java.lang.Object
implements Indomain<T>

IndomainMin - implements enumeration method based on the selection of the minimal value in the domain of variable

Version:
3.1
Author:
Krzysztof Kuchcinski and Radoslaw Szymanek

Constructor Summary
IndomainSetMin()
          It creates Indomain heuristic, which will choose the minimal value from the variable domain.
 
Method Summary
 int indomain(T var)
          It returns value within a variable which should be used in current assignment.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndomainSetMin

public IndomainSetMin()
It creates Indomain heuristic, which will choose the minimal value from the variable domain.

Method Detail

indomain

public int indomain(T var)
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.

Specified by:
indomain in interface Indomain<T extends SetVar>
Parameters:
var - defines variable for which value for assignment is suggested.
Returns:
defines value for current assignment.