|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.sat4j.minisat.constraints.pb.WatchPb org.sat4j.minisat.constraints.pb.MinWatchPb
public class MinWatchPb
Field Summary | |
---|---|
protected boolean[] |
watched
Liste des indices des litt??? |
protected int[] |
watching
Sert ??? |
protected int |
watchingCount
Liste des indices des litt??? |
Fields inherited from class org.sat4j.minisat.constraints.pb.WatchPb |
---|
activity, ATLEAST, ATMOST, coefs, degree, learnt, lits, locked, voc, watchCumul |
Constructor Summary | |
---|---|
protected |
MinWatchPb(ILits voc,
IDataStructurePB mpb)
Constructeur de base des contraintes |
protected |
MinWatchPb(ILits voc,
int[] lits,
java.math.BigInteger[] coefs,
java.math.BigInteger degree)
|
Method Summary | |
---|---|
protected void |
computePropagation(UnitPropagationListener s)
|
protected void |
computeWatches()
|
protected java.math.BigInteger |
maximalCoefficient(int pIndice)
|
static MinWatchPb |
minWatchPbNew(UnitPropagationListener s,
ILits voc,
IVecInt ps,
IVec<java.math.BigInteger> coefs,
boolean moreThan,
java.math.BigInteger degree)
|
static MinWatchPb |
minWatchPbNew(UnitPropagationListener s,
ILits voc,
IVecInt ps,
IVecInt coefs,
boolean moreThan,
int degree)
|
protected int |
nbOfWatched()
Nombre de litt??? |
static MinWatchPb |
normalizedMinWatchPbNew(UnitPropagationListener s,
ILits voc,
IDataStructurePB mpb)
|
static MinWatchPb |
normalizedMinWatchPbNew(UnitPropagationListener s,
ILits voc,
int[] lits,
java.math.BigInteger[] coefs,
java.math.BigInteger degree)
|
static WatchPb |
normalizedWatchPbNew(ILits voc,
IDataStructurePB mpb)
|
boolean |
propagate(UnitPropagationListener s,
int p)
Propagation de la valeur de v??? |
void |
remove()
Enl??? |
void |
undo(int p)
M??? |
protected java.math.BigInteger |
updateWatched(java.math.BigInteger mc,
int pIndice)
|
static WatchPb |
watchPbNew(ILits voc,
IVecInt lits,
IVec<java.math.BigInteger> coefs,
boolean moreThan,
java.math.BigInteger degree)
|
static WatchPb |
watchPbNew(ILits voc,
IVecInt lits,
IVecInt coefs,
boolean moreThan,
int degree)
|
Methods inherited from class org.sat4j.minisat.constraints.pb.WatchPb |
---|
assertConstraint, calcReason, coefficientsEqualToOne, computeAnImpliedClause, get, getActivity, getCoef, getCoefs, getDegree, getLits, getVocabulary, incActivity, isAssertive, isSatisfiable, learnt, locked, niceCheckedParameters, niceParameters, ppcm, recalcLeftSide, recalcLeftSide, register, rescaleBy, setLearnt, simplify, size, slackConstraint, slackConstraint, sort, sort, toBigInt, toString, toVecBigInt |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected boolean[] watched
protected int[] watching
protected int watchingCount
Constructor Detail |
---|
protected MinWatchPb(ILits voc, IDataStructurePB mpb)
voc
- Informations sur le vocabulaire employ???mpb
- a mutable PB constraintprotected MinWatchPb(ILits voc, int[] lits, java.math.BigInteger[] coefs, java.math.BigInteger degree)
Method Detail |
---|
protected void computeWatches() throws ContradictionException
computeWatches
in class WatchPb
ContradictionException
protected void computePropagation(UnitPropagationListener s) throws ContradictionException
computePropagation
in class WatchPb
ContradictionException
public static MinWatchPb minWatchPbNew(UnitPropagationListener s, ILits voc, IVecInt ps, IVecInt coefs, boolean moreThan, int degree) throws 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
ContradictionException
public static MinWatchPb minWatchPbNew(UnitPropagationListener s, ILits voc, IVecInt ps, IVec<java.math.BigInteger> coefs, boolean moreThan, java.math.BigInteger degree) throws 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
ContradictionException
public static MinWatchPb normalizedMinWatchPbNew(UnitPropagationListener s, ILits voc, IDataStructurePB mpb) throws ContradictionException
s
- a unit propagation listenervoc
- the vocabularympb
- the PB constraint to normalize.
ContradictionException
public static MinWatchPb normalizedMinWatchPbNew(UnitPropagationListener s, ILits voc, int[] lits, java.math.BigInteger[] coefs, java.math.BigInteger degree) throws ContradictionException
s
- a unit propagation listenervoc
- the vocabularylits
- the literalscoefs
- the coefficientsdegree
- the degree of the constraint to normalize.
ContradictionException
protected int nbOfWatched()
public boolean propagate(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(ILits voc, IVecInt lits, IVecInt coefs, boolean moreThan, int degree)
public static WatchPb watchPbNew(ILits voc, IVecInt lits, IVec<java.math.BigInteger> coefs, boolean moreThan, java.math.BigInteger degree)
public static WatchPb normalizedWatchPbNew(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 |