|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sat4j.pb.constraints.pb.WatchPb
org.sat4j.pb.constraints.pb.MinWatchPb
public class MinWatchPb
| Field Summary | |
|---|---|
protected boolean[] |
watched
Liste des indices des litt???raux regardant la contrainte |
protected int[] |
watching
Sert ??? d???terminer si la clause est watched par le litt???ral |
protected int |
watchingCount
Liste des indices des litt???raux regardant la contrainte |
| Fields inherited from class org.sat4j.pb.constraints.pb.WatchPb |
|---|
activity, ATLEAST, ATMOST, coefs, degree, learnt, lits, voc, watchCumul |
| Constructor Summary | |
|---|---|
protected |
MinWatchPb(org.sat4j.minisat.core.ILits voc,
IDataStructurePB mpb)
Constructeur de base des contraintes |
protected |
MinWatchPb(org.sat4j.minisat.core.ILits voc,
int[] lits,
java.math.BigInteger[] coefs,
java.math.BigInteger degree)
|
| Method Summary | |
|---|---|
protected void |
computePropagation(org.sat4j.minisat.core.UnitPropagationListener s)
|
protected void |
computeWatches()
|
protected java.math.BigInteger |
maximalCoefficient(int pIndice)
|
static MinWatchPb |
minWatchPbNew(org.sat4j.minisat.core.UnitPropagationListener s,
org.sat4j.minisat.core.ILits voc,
org.sat4j.specs.IVecInt ps,
org.sat4j.specs.IVec<java.math.BigInteger> coefs,
boolean moreThan,
java.math.BigInteger degree)
|
static MinWatchPb |
minWatchPbNew(org.sat4j.minisat.core.UnitPropagationListener s,
org.sat4j.minisat.core.ILits voc,
org.sat4j.specs.IVecInt ps,
org.sat4j.specs.IVecInt coefs,
boolean moreThan,
int degree)
|
protected int |
nbOfWatched()
Nombre de litt???raux actuellement observ??? |
static MinWatchPb |
normalizedMinWatchPbNew(org.sat4j.minisat.core.UnitPropagationListener s,
org.sat4j.minisat.core.ILits voc,
IDataStructurePB mpb)
|
static MinWatchPb |
normalizedMinWatchPbNew(org.sat4j.minisat.core.UnitPropagationListener s,
org.sat4j.minisat.core.ILits voc,
int[] lits,
java.math.BigInteger[] coefs,
java.math.BigInteger degree)
|
static WatchPb |
normalizedWatchPbNew(org.sat4j.minisat.core.ILits voc,
IDataStructurePB mpb)
|
boolean |
propagate(org.sat4j.minisat.core.UnitPropagationListener s,
int p)
Propagation de la valeur de v???rit??? d'un litt???ral falsifi??? |
void |
remove()
Enl???ve une contrainte du prouveur |
void |
undo(int p)
M???thode appel???e lors du backtrack |
protected java.math.BigInteger |
updateWatched(java.math.BigInteger mc,
int pIndice)
|
static WatchPb |
watchPbNew(org.sat4j.minisat.core.ILits voc,
org.sat4j.specs.IVecInt lits,
org.sat4j.specs.IVec<java.math.BigInteger> coefs,
boolean moreThan,
java.math.BigInteger degree)
|
static WatchPb |
watchPbNew(org.sat4j.minisat.core.ILits voc,
org.sat4j.specs.IVecInt lits,
org.sat4j.specs.IVecInt coefs,
boolean moreThan,
int degree)
|
| Methods inherited from class org.sat4j.pb.constraints.pb.WatchPb |
|---|
assertConstraint, calcReason, coefficientsEqualToOne, computeAnImpliedClause, equals, get, getActivity, getCoef, getCoefs, getDegree, getLits, getVocabulary, hashCode, incActivity, isAssertive, isSatisfiable, learnt, locked, recalcLeftSide, recalcLeftSide, register, rescaleBy, setLearnt, simplify, size, slackConstraint, slackConstraint, sort, sort, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected boolean[] watched
protected int[] watching
protected int watchingCount
| Constructor Detail |
|---|
protected MinWatchPb(org.sat4j.minisat.core.ILits voc,
IDataStructurePB mpb)
voc - Informations sur le vocabulaire employ???mpb - a mutable PB constraint
protected MinWatchPb(org.sat4j.minisat.core.ILits voc,
int[] lits,
java.math.BigInteger[] coefs,
java.math.BigInteger degree)
| Method Detail |
|---|
protected void computeWatches()
throws org.sat4j.specs.ContradictionException
computeWatches in class WatchPborg.sat4j.specs.ContradictionException
protected void computePropagation(org.sat4j.minisat.core.UnitPropagationListener s)
throws org.sat4j.specs.ContradictionException
computePropagation in class WatchPborg.sat4j.specs.ContradictionException
public static MinWatchPb minWatchPbNew(org.sat4j.minisat.core.UnitPropagationListener s,
org.sat4j.minisat.core.ILits voc,
org.sat4j.specs.IVecInt ps,
org.sat4j.specs.IVecInt coefs,
boolean moreThan,
int degree)
throws org.sat4j.specs.ContradictionException
s - outil pour la propagation des litt???rauxps - liste des litt???raux de la nouvelle contraintecoefs - liste des coefficients des litt???raux de la contraintemoreThan - d???termine si c'est une sup???rieure ou ???gal ??? l'originedegree - fournit le degr??? de la contrainte
org.sat4j.specs.ContradictionException
public static MinWatchPb minWatchPbNew(org.sat4j.minisat.core.UnitPropagationListener s,
org.sat4j.minisat.core.ILits voc,
org.sat4j.specs.IVecInt ps,
org.sat4j.specs.IVec<java.math.BigInteger> coefs,
boolean moreThan,
java.math.BigInteger degree)
throws org.sat4j.specs.ContradictionException
s - outil pour la propagation des litt???rauxps - liste des litt???raux de la nouvelle contraintecoefs - liste des coefficients des litt???raux de la contraintemoreThan - d???termine si c'est une sup???rieure ou ???gal ??? l'originedegree - fournit le degr??? de la contrainte
org.sat4j.specs.ContradictionException
public static MinWatchPb normalizedMinWatchPbNew(org.sat4j.minisat.core.UnitPropagationListener s,
org.sat4j.minisat.core.ILits voc,
IDataStructurePB mpb)
throws org.sat4j.specs.ContradictionException
s - a unit propagation listenervoc - the vocabularympb - the PB constraint to normalize.
org.sat4j.specs.ContradictionException
public static MinWatchPb normalizedMinWatchPbNew(org.sat4j.minisat.core.UnitPropagationListener s,
org.sat4j.minisat.core.ILits voc,
int[] lits,
java.math.BigInteger[] coefs,
java.math.BigInteger degree)
throws org.sat4j.specs.ContradictionException
s - a unit propagation listenervoc - the vocabularylits - the literalscoefs - the coefficientsdegree - the degree of the constraint to normalize.
org.sat4j.specs.ContradictionExceptionprotected int nbOfWatched()
public boolean propagate(org.sat4j.minisat.core.UnitPropagationListener s,
int p)
s - un prouveurp - le litt???ral propag??? (il doit etre falsifie)
public void remove()
public void undo(int p)
p - un litt???ral d???saffect???
public static WatchPb watchPbNew(org.sat4j.minisat.core.ILits voc,
org.sat4j.specs.IVecInt lits,
org.sat4j.specs.IVecInt coefs,
boolean moreThan,
int degree)
public static WatchPb watchPbNew(org.sat4j.minisat.core.ILits voc,
org.sat4j.specs.IVecInt lits,
org.sat4j.specs.IVec<java.math.BigInteger> coefs,
boolean moreThan,
java.math.BigInteger degree)
public static WatchPb normalizedWatchPbNew(org.sat4j.minisat.core.ILits voc,
IDataStructurePB mpb)
protected java.math.BigInteger maximalCoefficient(int pIndice)
pIndice - propagated literal : its coefficient is excluded from the
search of the maximal coefficient
protected java.math.BigInteger updateWatched(java.math.BigInteger mc,
int pIndice)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||