|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.sat4j.minisat.constraints.card.MaxWatchCard
public final 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? |
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? |
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 Constr
p
- un litt?ral falsifi? (ou Lit.UNDEFINED)outReason
- vecteur de litt?raux ? remplirConstr.calcReason(int p, IVecInt outReason)
public double getActivity()
getActivity
in interface IConstr
IConstr.getActivity()
public void incActivity(double claInc)
incActivity
in interface Constr
claInc
- incr?ment de l'activit? de la contrainteConstr.incActivity(double claInc)
public void setActivity(double d)
Constr
setActivity
in interface Constr
d
- the new activitypublic boolean learnt()
learnt
in interface IConstr
IConstr.learnt()
public boolean locked()
locked
in interface Constr
Constr.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 contrainte
ContradictionException
public final void normalize()
public boolean propagate(UnitPropagationListener s, int p)
propagate
in interface Propagatable
s
- objet utilis? pour la propagationp
- le litt?ral propag? (il doit etre falsifie)
public void remove(UnitPropagationListener upl)
Constr
remove
in interface Constr
public void rescaleBy(double d)
rescaleBy
in interface Constr
d
- facteur d'ajustementpublic boolean simplify()
simplify
in interface Constr
public String toString()
toString
in class Object
public void undo(int p)
undo
in interface Undoable
p
- le litt?ral d?saffect?public void setLearnt()
Constr
setLearnt
in interface Constr
public void register()
Constr
register
in interface Constr
public int size()
size
in interface IConstr
public int get(int i)
IConstr
get
in interface IConstr
i
- the index of the literal
public void assertConstraint(UnitPropagationListener s)
Constr
assertConstraint
in interface Constr
s
- 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 Constr
public boolean canBePropagatedMultipleTimes()
IConstr
canBePropagatedMultipleTimes
in interface IConstr
public Constr toConstraint()
Propagatable
toConstraint
in interface Propagatable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |