|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sat4j.minisat.constraints.card.MaxWatchCard
public class MaxWatchCard
| Method Summary | |
|---|---|
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? |
int |
get(int i)
returns the ith literal in the constraint |
double |
getActivity()
Obtenir la valeur de l'activit? |
java.math.BigInteger |
getCoef(int literal)
|
java.math.BigInteger |
getDegree()
|
ILits |
getVocabulary()
|
void |
incActivity(double claInc)
Incr? |
boolean |
learnt()
D? |
boolean |
locked()
La contrainte est la cause d'une propagation unitaire |
static MaxWatchCard |
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()
Enl? |
void |
rescaleBy(double d)
Permet le r?? |
void |
setLearnt()
Mark a constraint as learnt. |
boolean |
simplify()
Simplifie la contrainte(l'all? |
int |
size()
|
java.lang.String |
toString()
Cha? |
void |
undo(int p)
M? |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
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 ConstrConstr.getActivity()public void incActivity(double claInc)
incActivity in interface ConstrclaInc - incr?ment de l'activit? de la contrainteConstr.incActivity(double claInc)public boolean learnt()
learnt in interface IConstrIConstr.learnt()public boolean locked()
locked in interface ConstrConstr.locked()
public static MaxWatchCard 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 contrainte
ContradictionExceptionpublic final 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()
remove in interface Constrpublic void rescaleBy(double d)
rescaleBy in interface Constrd - facteur d'ajustementpublic boolean simplify()
simplify in interface Constrpublic java.lang.String toString()
toString in class java.lang.Objectpublic void undo(int p)
undo in interface Undoablep - le litt?ral d?saffect?public void setLearnt()
Constr
setLearnt in interface Constrpublic void register()
Constr
register in interface Constrpublic 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.public java.math.BigInteger getCoef(int literal)
public java.math.BigInteger getDegree()
public ILits getVocabulary()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||