|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.sat4j.minisat.uip.DecisionUIP
public final class DecisionUIP
Decision UIP scheme for building an asserting clause. This is one of the simplest way to build an asserting clause: the generator stops when it meets a decision variable (a literal with no reason). Note that this scheme cannot be used for general constraints, since decision variables are not necessarily UIP in the pseudo boolean case.
Constructor Summary | |
---|---|
DecisionUIP()
|
Method Summary | |
---|---|
boolean |
clauseNonAssertive(IConstr reason)
method indicating if an asserting clause has been built. note that this method is called right after a resolution step is finished. |
void |
initAnalyze()
hook method called before the analysis. |
void |
onCurrentDecisionLevelLiteral(int p)
hook method called when a literal from the current decision lelvel is found. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DecisionUIP()
Method Detail |
---|
public void initAnalyze()
AssertingClauseGenerator
initAnalyze
in interface AssertingClauseGenerator
public void onCurrentDecisionLevelLiteral(int p)
AssertingClauseGenerator
onCurrentDecisionLevelLiteral
in interface AssertingClauseGenerator
p
- the literal in the current decision levelpublic boolean clauseNonAssertive(IConstr reason)
AssertingClauseGenerator
clauseNonAssertive
in interface AssertingClauseGenerator
reason
- the reason of the current literal assignment
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |