|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sat4j.minisat.constraints.cnf.TernaryClauses
public class TernaryClauses
| Constructor Summary | |
|---|---|
TernaryClauses(ILits voc,
int p)
|
|
| Method Summary | |
|---|---|
void |
addTernaryClause(int a,
int b)
|
void |
assertConstraint(UnitPropagationListener s)
Method called when the constraint is to be asserted. |
void |
calcReason(int p,
IVecInt outReason)
Compute the reason for a given assignment. |
int |
get(int i)
returns the ith literal in the constraint |
double |
getActivity()
To obtain the activity of the constraint. |
void |
incActivity(double claInc)
Increase the constraint activity. |
boolean |
learnt()
|
boolean |
locked()
Indicate wether a constraint is responsible from an assignment. |
boolean |
propagate(UnitPropagationListener s,
int p)
Propagate the truth value of a literal in constraints in which that literal is falsified. |
void |
register()
Register the constraint to the solver. |
void |
remove()
Remove a constraint from the solver. |
void |
rescaleBy(double d)
Rescale the clause activity by a value. |
void |
setLearnt()
Mark a constraint as learnt. |
boolean |
simplify()
Simplifies a constraint, by removing top level falsified literals for instance. |
int |
size()
|
void |
undo(int p)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TernaryClauses(ILits voc,
int p)
| Method Detail |
|---|
public void addTernaryClause(int a,
int b)
public void remove()
Constr
remove in interface Constr
public boolean propagate(UnitPropagationListener s,
int p)
Propagatable
propagate in interface Propagatables - something able to perform unit propagationp - the literal being propagated. Its negation must appear in the
constraint.
public boolean simplify()
Constr
simplify in interface Constrpublic void undo(int p)
public void calcReason(int p,
IVecInt outReason)
Constr
calcReason in interface Constrp - a satisfied literal (or Lit.UNDEFINED)outReason - the list of falsified literals whose negation is the reason of
the assignment of p to true.public boolean learnt()
learnt in interface IConstrpublic void incActivity(double claInc)
Constr
incActivity in interface ConstrclaInc - the value to increase the activity withpublic double getActivity()
Constr
getActivity in interface Constrpublic boolean locked()
Constr
locked in interface Constrpublic void setLearnt()
Constr
setLearnt in interface Constrpublic void register()
Constr
register in interface Constrpublic void rescaleBy(double d)
Constr
rescaleBy in interface Constrd - the value to rescale the clause activity with.public int size()
size in interface IConstrpublic int get(int i)
IConstr
get in interface IConstri - the index of the literal
public void assertConstraint(UnitPropagationListener s)
Constr
assertConstraint in interface Constrs - a UnitPropagationListener to use for unit propagation.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||