choco.kernel.solver.search.set
Class AbstractSetVarSelector
java.lang.Object
choco.kernel.solver.search.AbstractSearchHeuristic
choco.kernel.solver.search.set.AbstractSetVarSelector
- All Implemented Interfaces:
- VarSelector<SetVar>
- Direct Known Subclasses:
- MaxDomSet, MaxRegretSet, MaxValueDomSet, MinDomSet, MinValueDomSet, MostConstrainedSet, RandomSetVarSelector, StaticSetVarOrder
public abstract class AbstractSetVarSelector
- extends AbstractSearchHeuristic
- implements VarSelector<SetVar>
Field Summary |
protected SetVar[] |
vars
a specific array of SetVars from which the object seeks the one with smallest domain |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
vars
protected final SetVar[] vars
- a specific array of SetVars from which the object seeks the one with smallest domain
AbstractSetVarSelector
public AbstractSetVarSelector(Solver solver)
AbstractSetVarSelector
public AbstractSetVarSelector(Solver solver,
SetVar[] vars)
selectVar
public SetVar selectVar()
- Description copied from interface:
VarSelector
- the VarSelector can be asked to return a variable
- Specified by:
selectVar
in interface VarSelector<SetVar>
- Returns:
- a variable on whose domain an alternative can be set (such as a non instantiated search variable)
getVars
public SetVar[] getVars()
- Get decision vars
- Returns:
- decision vars
setVars
@Deprecated
public void setVars(SetVar[] vars)
- Deprecated.
- Set decision vars
getHeuristic
public abstract int getHeuristic(SetVar v)
Copyright © 2012. All Rights Reserved.