public interface Constr extends IConstr
| Modifier and Type | Method and Description | 
|---|---|
| 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. | 
| void | calcReasonOnTheFly(int p,
                  IVecInt trail,
                  IVecInt outReason)Compute the reason for a given assignment in a the constraint created on
 the fly in the solver. | 
| void | forwardActivity(double claInc)Deprecated.  | 
| 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(UnitPropagationListener upl)Remove a constraint from the solver. | 
| void | rescaleBy(double d)Rescale the clause activity by a value. | 
| void | setActivity(double d)Set the activity at a specific value | 
| void | setLearnt()Mark a constraint as learnt. | 
| boolean | simplify()Simplifies a constraint, by removing top level falsified literals for
 instance. | 
canBePropagatedMultipleTimes, get, getActivity, learnt, sizevoid remove(UnitPropagationListener upl)
upl - boolean simplify()
void calcReason(int p,
              IVecInt outReason)
Propagatable.propagate(UnitPropagationListener, int).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 calcReasonOnTheFly(int p,
                      IVecInt trail,
                      IVecInt outReason)
calcReason(int, IVecInt), the falsification may not have been
 detected as soon as possible. As such, it is necessary to take into
 account the order of the literals in the trail.p - a satisfied literal (or Lit.UNDEFINED)trail - all the literals satisfied in the solvers, should not be
            modified.outReason - a 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 with@Deprecated void forwardActivity(double claInc)
claInc - boolean locked()
void setLearnt()
void register()
void rescaleBy(double d)
d - the value to rescale the clause activity with.void setActivity(double d)
d - the new activityvoid assertConstraint(UnitPropagationListener s)
s - a UnitPropagationListener to use for unit propagation.Copyright © 2013 Centre de Recherche en Informatique de Lens (CRIL). All Rights Reserved.