org.sat4j.minisat.constraints.pb
Class PuebloMinWatchPb

java.lang.Object
  extended by org.sat4j.minisat.constraints.pb.WatchPb
      extended by org.sat4j.minisat.constraints.pb.MinWatchPb
          extended by org.sat4j.minisat.constraints.pb.PuebloMinWatchPb
All Implemented Interfaces:
java.io.Serializable, PBConstr, Constr, Propagatable, Undoable, IConstr

public class PuebloMinWatchPb
extends MinWatchPb

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.sat4j.minisat.constraints.pb.MinWatchPb
watched, watching, watchingCount
 
Fields inherited from class org.sat4j.minisat.constraints.pb.WatchPb
activity, ATLEAST, ATMOST, coefs, degree, learnt, lits, locked, voc, watchCumul
 
Method Summary
protected  java.math.BigInteger maximalCoefficient(int pIndice)
           
static PuebloMinWatchPb minWatchPbNew(UnitPropagationListener s, ILits voc, IDataStructurePB mpb)
           
static PuebloMinWatchPb minWatchPbNew(UnitPropagationListener s, ILits voc, IVecInt ps, IVec<java.math.BigInteger> coefs, boolean moreThan, java.math.BigInteger degree)
           
static PuebloMinWatchPb minWatchPbNew(UnitPropagationListener s, ILits voc, IVecInt ps, IVecInt coefs, boolean moreThan, int degree)
           
static WatchPb normalizedWatchPbNew(ILits voc, IDataStructurePB mpb)
           
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.MinWatchPb
computePropagation, computeWatches, nbOfWatched, normalizedMinWatchPbNew, normalizedMinWatchPbNew, propagate, remove, undo
 
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
 

Method Detail

minWatchPbNew

public static PuebloMinWatchPb minWatchPbNew(UnitPropagationListener s,
                                             ILits voc,
                                             IVecInt ps,
                                             IVecInt coefs,
                                             boolean moreThan,
                                             int degree)
                                      throws ContradictionException
Parameters:
s - outil pour la propagation des litt???raux
ps - liste des litt???raux de la nouvelle contrainte
coefs - liste des coefficients des litt???raux de la contrainte
moreThan - d???termine si c'est une sup???rieure ou ???gal ??? l'origine
degree - fournit le degr??? de la contrainte
Returns:
une nouvelle clause si tout va bien, ou null si un conflit est d???tect???
Throws:
ContradictionException

minWatchPbNew

public static PuebloMinWatchPb minWatchPbNew(UnitPropagationListener s,
                                             ILits voc,
                                             IVecInt ps,
                                             IVec<java.math.BigInteger> coefs,
                                             boolean moreThan,
                                             java.math.BigInteger degree)
                                      throws ContradictionException
Parameters:
s - outil pour la propagation des litt???raux
ps - liste des litt???raux de la nouvelle contrainte
coefs - liste des coefficients des litt???raux de la contrainte
moreThan - d???termine si c'est une sup???rieure ou ???gal ??? l'origine
degree - fournit le degr??? de la contrainte
Returns:
une nouvelle clause si tout va bien, ou null si un conflit est d???tect???
Throws:
ContradictionException

minWatchPbNew

public static PuebloMinWatchPb minWatchPbNew(UnitPropagationListener s,
                                             ILits voc,
                                             IDataStructurePB mpb)
                                      throws ContradictionException
Throws:
ContradictionException

watchPbNew

public static WatchPb watchPbNew(ILits voc,
                                 IVecInt lits,
                                 IVecInt coefs,
                                 boolean moreThan,
                                 int degree)

watchPbNew

public static WatchPb watchPbNew(ILits voc,
                                 IVecInt lits,
                                 IVec<java.math.BigInteger> coefs,
                                 boolean moreThan,
                                 java.math.BigInteger degree)

normalizedWatchPbNew

public static WatchPb normalizedWatchPbNew(ILits voc,
                                           IDataStructurePB mpb)

maximalCoefficient

protected java.math.BigInteger maximalCoefficient(int pIndice)
Overrides:
maximalCoefficient in class MinWatchPb
Parameters:
pIndice - propagated literal : its coefficient is excluded from the search of the maximal coefficient
Returns:
the maximal coefficient for the watched literals

updateWatched

protected java.math.BigInteger updateWatched(java.math.BigInteger mc,
                                             int pIndice)
Overrides:
updateWatched in class MinWatchPb


Copyright © 2007 Centre de Recherche en Informatique de Lens (CRIL). All Rights Reserved.