|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IPhaseSelectionStrategy
The responsibility of that class is to choose the phase (positive or negative) of the variable that was selected by the IOrder.
Method Summary | |
---|---|
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. |
void |
updateVar(int p)
To be called when the activity of a literal changed. |
Method Detail |
---|
void updateVar(int p)
p
- a literal. The associated variable will be updated.void init(int nlength)
nlength
- the number of variables managed by the heuristics.void init(int var, int p)
var
- a variablep
- it's initial phasevoid assignLiteral(int p)
p
- int select(int var)
var
- a variable chosen by the heuristics
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |