samples.multicostregular.asap.heuristics
Class CoverVarSelector

java.lang.Object
  extended by choco.kernel.solver.search.AbstractSearchHeuristic
      extended by samples.multicostregular.asap.heuristics.CoverVarSelector
All Implemented Interfaces:
VarSelector<IntDomainVar>, ValSelector<IntDomainVar>

public class CoverVarSelector
extends AbstractSearchHeuristic
implements VarSelector<IntDomainVar>, ValSelector<IntDomainVar>

Created by IntelliJ IDEA. User: julien Date: 5 janv. 2010 Time: 13:39:56


Field Summary
 
Fields inherited from class choco.kernel.solver.search.AbstractSearchHeuristic
branching, solver
 
Constructor Summary
CoverVarSelector(IntDomainVar[][] vars, int[][] lowb, Solver solver)
           
 
Method Summary
 int getBestVal(IntDomainVar x)
          A method selecting the search value used for the alternative
 IntDomainVar selectVar()
          the VarSelector can be asked to return a variable
 
Methods inherited from class choco.kernel.solver.search.AbstractSearchHeuristic
getBranching, getSolver, setBranching
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CoverVarSelector

public CoverVarSelector(IntDomainVar[][] vars,
                        int[][] lowb,
                        Solver solver)
Method Detail

selectVar

public IntDomainVar selectVar()
Description copied from interface: VarSelector
the VarSelector can be asked to return a variable

Specified by:
selectVar in interface VarSelector<IntDomainVar>
Returns:
a variable on whose domain an alternative can be set (such as a non instantiated search variable)

getBestVal

public int getBestVal(IntDomainVar x)
Description copied from interface: ValSelector
A method selecting the search value used for the alternative

Specified by:
getBestVal in interface ValSelector<IntDomainVar>


Copyright © 2012. All Rights Reserved.