choco.cp.solver.search.integer.varselector
Class CompositeIntVarSelector

java.lang.Object
  extended by choco.cp.solver.search.integer.varselector.CompositeIntVarSelector
All Implemented Interfaces:
VarSelector<IntDomainVar>

public class CompositeIntVarSelector
extends Object
implements VarSelector<IntDomainVar>

A class that composes two heuristics for selecting a variable: a first heuristic is appled for selecting a constraint. from that constraint a second heuristic is applied for selecting the variable


Field Summary
protected  ConstraintSelector cs
           
protected  HeuristicIntVarSelector cvs
           
 
Constructor Summary
CompositeIntVarSelector(ConstraintSelector cs, HeuristicIntVarSelector cvs)
           
 
Method Summary
 ConstraintSelector getCs()
           
 HeuristicIntVarSelector getCvs()
           
 IntDomainVar selectVar()
          the VarSelector can be asked to return a variable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cs

protected ConstraintSelector cs

cvs

protected HeuristicIntVarSelector cvs
Constructor Detail

CompositeIntVarSelector

public CompositeIntVarSelector(ConstraintSelector cs,
                               HeuristicIntVarSelector cvs)
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)

getCs

public ConstraintSelector getCs()

getCvs

public HeuristicIntVarSelector getCvs()


Copyright © 2012. All Rights Reserved.