public final class MaxWatchCard extends Object implements Propagatable, Constr, Undoable, Serializable
| Constructor and Description | 
|---|
| MaxWatchCard(ILits voc,
            IVecInt ps,
            boolean moreThan,
            int degree)Constructeur de base cr? | 
| 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)Calcule la cause de l'affection d'un litt? | 
| 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. | 
| boolean | canBePropagatedMultipleTimes()Partition constraints into the ones that can only be found once on the
 trail (e.g. clauses) and the ones that can be found several times (e.g. | 
| void | forwardActivity(double claInc) | 
| int | get(int i)returns the ith literal in the constraint | 
| double | getActivity()Obtenir la valeur de l'activit? | 
| BigInteger | getCoef(int literal) | 
| BigInteger | getDegree() | 
| ILits | getVocabulary() | 
| void | incActivity(double claInc)Incr? | 
| boolean | learnt()D? | 
| boolean | locked()La contrainte est la cause d'une propagation unitaire | 
| static Constr | maxWatchCardNew(UnitPropagationListener s,
               ILits voc,
               IVecInt ps,
               boolean moreThan,
               int degree)Permet la cr? | 
| void | normalize()On normalise la contrainte au sens de Barth | 
| boolean | propagate(UnitPropagationListener s,
         int p)Propagation de la valeur de v? | 
| void | register()Register the constraint to the solver. | 
| void | remove(UnitPropagationListener upl)Remove a constraint from the solver. | 
| void | rescaleBy(double d)Permet le r?? | 
| void | setActivity(double d)Set the activity at a specific value | 
| void | setLearnt()Mark a constraint as learnt. | 
| boolean | simplify()Simplifie la contrainte(l'all? | 
| int | size() | 
| Constr | toConstraint()Allow to access a constraint view of the propagatable to avoid casting. | 
| String | toString()Cha? | 
| void | undo(int p)M? | 
public void calcReason(int p,
              IVecInt outReason)
calcReason in interface Constrp - un litt?ral falsifi? (ou Lit.UNDEFINED)outReason - vecteur de litt?raux ? remplirConstr.calcReason(int p, IVecInt outReason)public double getActivity()
getActivity in interface IConstrIConstr.getActivity()public void incActivity(double claInc)
incActivity in interface ConstrclaInc - incr?ment de l'activit? de la contrainteConstr.incActivity(double claInc)public void setActivity(double d)
ConstrsetActivity in interface Constrd - the new activitypublic boolean learnt()
learnt in interface IConstrIConstr.learnt()public boolean locked()
locked in interface ConstrConstr.locked()public static Constr maxWatchCardNew(UnitPropagationListener s, ILits voc, IVecInt ps, boolean moreThan, int degree) throws ContradictionException
s - outil pour la propagation des litt?rauxvoc - vocabulaire utilis? par la contrainteps - liste des litt?raux de la nouvelle contraintemoreThan - d?termine si c'est une sup?rieure ou ?gal ? l'originedegree - fournit le degr? de la contrainteContradictionExceptionpublic void normalize()
public boolean propagate(UnitPropagationListener s, int p)
propagate in interface Propagatables - objet utilis? pour la propagationp - le litt?ral propag? (il doit etre falsifie)public void remove(UnitPropagationListener upl)
Constrpublic void rescaleBy(double d)
public boolean simplify()
public String toString()
public void undo(int p)
public void setLearnt()
Constrpublic void register()
Constrpublic int size()
public int get(int i)
IConstrpublic void assertConstraint(UnitPropagationListener s)
ConstrassertConstraint in interface Constrs - a UnitPropagationListener to use for unit propagation.public BigInteger getCoef(int literal)
public BigInteger getDegree()
public ILits getVocabulary()
public void forwardActivity(double claInc)
forwardActivity in interface Constrpublic boolean canBePropagatedMultipleTimes()
IConstrcanBePropagatedMultipleTimes in interface IConstrpublic Constr toConstraint()
PropagatabletoConstraint in interface Propagatablepublic void calcReasonOnTheFly(int p,
                      IVecInt trail,
                      IVecInt outReason)
ConstrConstr.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.calcReasonOnTheFly in interface Constrp - 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.Copyright © 2013 Centre de Recherche en Informatique de Lens (CRIL). All Rights Reserved.