choco.cp.solver.search.integer.varselector
Class CompositeIntVarSelector
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
cs
protected ConstraintSelector cs
cvs
protected HeuristicIntVarSelector cvs
CompositeIntVarSelector
public CompositeIntVarSelector(ConstraintSelector cs,
HeuristicIntVarSelector cvs)
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.