|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sat4j.minisat.orders.UserFixedPhaseSelectionStrategy
public final class UserFixedPhaseSelectionStrategy
Selection strategy where the phase selection is decided at init time and is not updated during the search.
| Field Summary | |
|---|---|
protected int[] |
phase
|
| Constructor Summary | |
|---|---|
UserFixedPhaseSelectionStrategy()
|
|
| 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. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected int[] phase
| Constructor Detail |
|---|
public UserFixedPhaseSelectionStrategy()
| Method Detail |
|---|
public void assignLiteral(int p)
IPhaseSelectionStrategy
public void updateVar(int p)
IPhaseSelectionStrategy
p - a literal. The associated variable will be updated.public String toString()
toString in class Objectpublic void updateVarAtDecisionLevel(int q)
IPhaseSelectionStrategyIPhaseSelectionStrategy.updateVar(int).
q - a literalpublic void init(int nlength)
IPhaseSelectionStrategy
init in interface IPhaseSelectionStrategynlength - the number of variables managed by the heuristics.
public void init(int var,
int p)
IPhaseSelectionStrategy
init in interface IPhaseSelectionStrategyvar - a variablep - it's initial phasepublic int select(int var)
IPhaseSelectionStrategy
select in interface IPhaseSelectionStrategyvar - a variable chosen by the heuristics
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||