public final class RandomLiteralSelectionStrategy extends Object implements IPhaseSelectionStrategy
| Constructor and Description | 
|---|
| RandomLiteralSelectionStrategy() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | assignLiteral(int p)indicate that a literal has been satisfied. | 
| void | init(int nlength)that method has the responsibility to initialize all arrays in the
 heuristics. | 
| void | init(int var,
    int p)initialize the phase of a given variable to the given value. | 
| int | select(int var)selects the phase of the variable according to a phase selection
 strategy. | 
| String | toString() | 
| void | updateVar(int p)To be called when the activity of a literal changed. | 
| void | updateVarAtDecisionLevel(int q)Allow to perform a specific action when a literal of the current decision
 level is updated. | 
public static final Random RAND
public void assignLiteral(int p)
IPhaseSelectionStrategyassignLiteral in interface IPhaseSelectionStrategypublic void init(int nlength)
IPhaseSelectionStrategyinit in interface IPhaseSelectionStrategynlength - the number of variables managed by the heuristics.public void init(int var,
        int p)
IPhaseSelectionStrategyinit in interface IPhaseSelectionStrategyvar - a variablep - it's initial phasepublic int select(int var)
IPhaseSelectionStrategyselect in interface IPhaseSelectionStrategyvar - a variable chosen by the heuristicspublic void updateVar(int p)
IPhaseSelectionStrategyupdateVar in interface IPhaseSelectionStrategyp - a literal. The associated variable will be updated.public void updateVarAtDecisionLevel(int q)
IPhaseSelectionStrategyIPhaseSelectionStrategy.updateVar(int).updateVarAtDecisionLevel in interface IPhaseSelectionStrategyq - a literalCopyright © 2013 Centre de Recherche en Informatique de Lens (CRIL). All Rights Reserved.