public class VarOrderHeap extends Object implements IOrder, Serializable
| Modifier and Type | Field and Description | 
|---|---|
protected double[] | 
activity
mesure heuristique de l'activite d'une variable. 
 | 
protected Heap | 
heap  | 
protected ILits | 
lits  | 
protected IPhaseSelectionStrategy | 
phaseStrategy  | 
| Constructor and Description | 
|---|
VarOrderHeap()  | 
VarOrderHeap(IPhaseSelectionStrategy strategy)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
assignLiteral(int p)
indicate that a literal has been satisfied. 
 | 
IPhaseSelectionStrategy | 
getPhaseSelectionStrategy()  | 
double[] | 
getVariableHeuristics()
Read-Only access to the value of the heuristics for each variable. 
 | 
ILits | 
getVocabulary()  | 
void | 
init()
that method has the responsability to initialize all arrays in the
 heuristics. 
 | 
int | 
numberOfInterestingVariables()  | 
void | 
printStat(PrintWriter out,
         String prefix)
Display statistics regarding the heuristics. 
 | 
int | 
select()
Selectionne une nouvelle variable, non affectee, ayant l'activite la plus
 elevee. 
 | 
void | 
setLits(ILits lits)
Method used to provide an easy access the the solver vocabulary. 
 | 
void | 
setPhaseSelectionStrategy(IPhaseSelectionStrategy strategy)
Change the selection strategy. 
 | 
void | 
setVarDecay(double d)
Change la valeur de varDecay. 
 | 
String | 
toString()  | 
void | 
undo(int x)
Methode appelee quand la variable x est desaffectee. 
 | 
protected void | 
updateActivity(int var)  | 
void | 
updateVar(int p)
Appelee lorsque l'activite de la variable x a change. 
 | 
void | 
updateVarAtDecisionLevel(int q)
Allow to perform a specific action when a literal of the current decision
 level is updated. 
 | 
double | 
varActivity(int p)
To obtain the current activity of a variable. 
 | 
void | 
varDecayActivity()
Decay the variables activities. 
 | 
protected double[] activity
protected ILits lits
protected Heap heap
protected IPhaseSelectionStrategy phaseStrategy
public VarOrderHeap()
public VarOrderHeap(IPhaseSelectionStrategy strategy)
public void setPhaseSelectionStrategy(IPhaseSelectionStrategy strategy)
setPhaseSelectionStrategy in interface IOrderstrategy - public IPhaseSelectionStrategy getPhaseSelectionStrategy()
getPhaseSelectionStrategy in interface IOrderpublic void setLits(ILits lits)
IOrderpublic int select()
public void setVarDecay(double d)
setVarDecay in interface IOrderd - la nouvelle valeur de varDecaypublic void undo(int x)
public void updateVar(int p)
protected void updateActivity(int var)
public void varDecayActivity()
IOrdervarDecayActivity in interface IOrderpublic double varActivity(int p)
IOrdervarActivity in interface IOrderp - a literalpublic int numberOfInterestingVariables()
public void init()
public ILits getVocabulary()
public void printStat(PrintWriter out, String prefix)
IOrderpublic void assignLiteral(int p)
IOrderassignLiteral in interface IOrderpublic void updateVarAtDecisionLevel(int q)
IOrderIOrder.updateVar(int).updateVarAtDecisionLevel in interface IOrderq - a literalpublic double[] getVariableHeuristics()
IOrdergetVariableHeuristics in interface IOrderCopyright © 2013 Centre de Recherche en Informatique de Lens (CRIL). All Rights Reserved.