|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Constr
Basic constraint abstraction used in Solver. Any new constraint type should implement that interface.
Method Summary | |
---|---|
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. |
double |
getActivity()
To obtain the activity of the constraint. |
void |
incActivity(double claInc)
Increase the constraint activity. |
boolean |
locked()
Indicate wether a constraint is responsible from an assignment. |
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. |
Methods inherited from interface org.sat4j.minisat.core.Propagatable |
---|
propagate |
Methods inherited from interface org.sat4j.specs.IConstr |
---|
get, learnt, size |
Method Detail |
---|
void remove()
boolean simplify()
void calcReason(int p, IVecInt outReason)
p
- a satisfied literal (or Lit.UNDEFINED)outReason
- the list of falsified literals whose negation is the reason of
the assignment of p to true.void incActivity(double claInc)
claInc
- the value to increase the activity withdouble getActivity()
boolean locked()
void setLearnt()
void register()
void rescaleBy(double d)
d
- the value to rescale the clause activity with.void assertConstraint(UnitPropagationListener s)
s
- a UnitPropagationListener to use for unit propagation.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |