org.sat4j.pb.constraints.pb
Class MaxWatchPb
java.lang.Object
org.sat4j.pb.constraints.pb.WatchPb
org.sat4j.pb.constraints.pb.MaxWatchPb
- All Implemented Interfaces:
- java.io.Serializable, org.sat4j.minisat.core.Constr, org.sat4j.minisat.core.Propagatable, org.sat4j.minisat.core.Undoable, PBConstr, org.sat4j.specs.IConstr
public class MaxWatchPb
- extends WatchPb
- See Also:
- Serialized Form
|
Method Summary |
protected void |
computePropagation(org.sat4j.minisat.core.UnitPropagationListener s)
|
protected void |
computeWatches()
Permet l'observation de tous les litt???raux |
static MaxWatchPb |
maxWatchPbNew(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 MaxWatchPb |
maxWatchPbNew(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)
|
static MaxWatchPb |
normalizedMaxWatchPbNew(org.sat4j.minisat.core.UnitPropagationListener s,
org.sat4j.minisat.core.ILits voc,
IDataStructurePB mpb)
|
static MaxWatchPb |
normalizedMaxWatchPbNew(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 |
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 |
computeWatches
protected void computeWatches()
throws org.sat4j.specs.ContradictionException
- Permet l'observation de tous les litt???raux
- Specified by:
computeWatches in class WatchPb
- Throws:
org.sat4j.specs.ContradictionException- See Also:
WatchPb.computeWatches()
computePropagation
protected void computePropagation(org.sat4j.minisat.core.UnitPropagationListener s)
throws org.sat4j.specs.ContradictionException
- Specified by:
computePropagation in class WatchPb
- Throws:
org.sat4j.specs.ContradictionException
maxWatchPbNew
public static MaxWatchPb maxWatchPbNew(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
- Parameters:
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
- Returns:
- une nouvelle clause si tout va bien, ou null si un conflit est
d?tect?
- Throws:
org.sat4j.specs.ContradictionException
maxWatchPbNew
public static MaxWatchPb maxWatchPbNew(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
- Parameters:
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
- Returns:
- une nouvelle clause si tout va bien, ou null si un conflit est
d?tect?
- Throws:
org.sat4j.specs.ContradictionException
propagate
public boolean propagate(org.sat4j.minisat.core.UnitPropagationListener s,
int p)
- Propagation de la valeur de v?rit? d'un litt?ral falsifi?
- Parameters:
s - un prouveurp - le litt?ral propag? (il doit etre falsifie)
- Returns:
- false ssi une inconsistance est d?tect?e
remove
public void remove()
- Enl???ve une contrainte du prouveur
undo
public void undo(int p)
- M?thode appel?e lors du backtrack
- Parameters:
p - un litt?ral d?saffect?
watchPbNew
public static WatchPb watchPbNew(org.sat4j.minisat.core.ILits voc,
org.sat4j.specs.IVecInt lits,
org.sat4j.specs.IVecInt coefs,
boolean moreThan,
int degree)
watchPbNew
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)
normalizedMaxWatchPbNew
public static MaxWatchPb normalizedMaxWatchPbNew(org.sat4j.minisat.core.UnitPropagationListener s,
org.sat4j.minisat.core.ILits voc,
IDataStructurePB mpb)
throws org.sat4j.specs.ContradictionException
- Parameters:
s - a unit propagation listenervoc - the vocabularympb - the PB constraint to normalize.
- Returns:
- a new PB contraint or null if a trivial inconsistency is
detected.
- Throws:
org.sat4j.specs.ContradictionException
normalizedMaxWatchPbNew
public static MaxWatchPb normalizedMaxWatchPbNew(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
- Parameters:
s - a unit propagation listenervoc - the vocabularylits - the literals of the constraintcoefs - the coefficients of the constraintdegree - the degree of the constraint
- Returns:
- a new PB constraint or null if a trivial inconsistency is
detected.
- Throws:
org.sat4j.specs.ContradictionException
normalizedWatchPbNew
public static WatchPb normalizedWatchPbNew(org.sat4j.minisat.core.ILits voc,
IDataStructurePB mpb)
Copyright © 2008 Centre de Recherche en Informatique de Lens (CRIL). All Rights Reserved.