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)
Method called when the constraint is to be asserted.
|
IVecInt |
computeAnImpliedClause() |
java.math.BigInteger |
getCoef(int literal) |
java.math.BigInteger[] |
getCoefs() |
java.math.BigInteger |
getDegree() |
boolean |
learnt()
D?termine si la contrainte est apprise
|
static PBConstr |
minWatchCardPBNew(UnitPropagationListener s,
ILits voc,
IVecInt ps,
boolean moreThan,
int degree)
Permet la cr?ation de contrainte de cardinalit? ? observation minimale
|
static PBConstr |
normalizedMinWatchCardPBNew(UnitPropagationListener s,
ILits voc,
IVecInt ps,
int degree)
Permet la cr?ation de contrainte de cardinalit? ? observation minimale
|
void |
register()
Register the constraint to the solver.
|
void |
setLearnt()
Mark a constraint as learnt.
|
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, undoclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetLits, getVocabularyassertConstraintIfNeeded, calcReason, calcReasonOnTheFly, forwardActivity, incActivity, locked, remove, rescaleBy, setActivity, simplifycanBePropagatedMultipleTimes, get, getActivity, sizepublic java.math.BigInteger getCoef(int literal)
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 contrainteContradictionExceptionpublic 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 contrainteContradictionExceptionpublic boolean learnt()
learnt in interface IConstrlearnt in class MinWatchCardIConstr.learnt()public void setLearnt()
ConstrsetLearnt in interface ConstrsetLearnt in class MinWatchCardpublic void register()
Constrregister in interface Constrregister in class MinWatchCardpublic void assertConstraint(UnitPropagationListener s)
ConstrassertConstraint in interface ConstrassertConstraint in class MinWatchCards - a UnitPropagationListener to use for unit propagation.public IVecInt computeAnImpliedClause()
computeAnImpliedClause in interface PBConstr