public final class MinWatchCardPB extends MinWatchCard implements PBConstr
ATLEAST, ATMOST, degree, watchCumul
Constructor and Description |
---|
MinWatchCardPB(ILits voc,
IVecInt ps,
boolean moreThan,
int degree) |
MinWatchCardPB(ILits voc,
IVecInt ps,
int degree) |
Modifier and Type | Method and Description |
---|---|
void |
assertConstraint(UnitPropagationListener s) |
IVecInt |
computeAnImpliedClause() |
BigInteger |
getCoef(int literal) |
BigInteger[] |
getCoefs() |
BigInteger |
getDegree() |
boolean |
learnt()
D?
|
static PBConstr |
minWatchCardPBNew(UnitPropagationListener s,
ILits voc,
IVecInt ps,
boolean moreThan,
int degree)
Permet la cr?
|
static PBConstr |
normalizedMinWatchCardPBNew(UnitPropagationListener s,
ILits voc,
IVecInt ps,
int degree)
Permet la cr?
|
void |
register() |
void |
setLearnt() |
assertConstraintIfNeeded, calcReason, calcReasonOnTheFly, canBePropagatedMultipleTimes, computePropagation, computeWatches, equals, forwardActivity, get, getActivity, getLits, getVocabulary, hashCode, incActivity, linearisation, locked, minWatchCardNew, normalize, propagate, remove, rescaleBy, setActivity, simplify, size, toConstraint, toString, undo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getLits, getVocabulary
assertConstraintIfNeeded, calcReason, calcReasonOnTheFly, forwardActivity, incActivity, locked, remove, rescaleBy, setActivity, simplify
canBePropagatedMultipleTimes, get, getActivity, size
public BigInteger getCoef(int literal)
public BigInteger getDegree()
public BigInteger[] getCoefs()
public static PBConstr normalizedMinWatchCardPBNew(UnitPropagationListener s, ILits voc, IVecInt ps, int degree) throws ContradictionException
s
- outil pour la propagation des litt?rauxvoc
- vocabulaire utilis? par la contrainteps
- liste des litt?raux de la nouvelle contraintedegree
- fournit le degr? de la contrainteContradictionException
public static PBConstr minWatchCardPBNew(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 contrainteContradictionException
public boolean learnt()
learnt
in interface IConstr
learnt
in class MinWatchCard
IConstr.learnt()
public void setLearnt()
setLearnt
in interface Constr
setLearnt
in class MinWatchCard
public void register()
register
in interface Constr
register
in class MinWatchCard
public void assertConstraint(UnitPropagationListener s)
assertConstraint
in interface Constr
assertConstraint
in class MinWatchCard
public IVecInt computeAnImpliedClause()
computeAnImpliedClause
in interface PBConstr
Copyright © 2013 Centre de Recherche en Informatique de Lens (CRIL). All Rights Reserved.