org.sat4j.pb.constraints.pb
Class MinWatchCardPB
java.lang.Object
org.sat4j.minisat.constraints.card.MinWatchCard
org.sat4j.pb.constraints.pb.MinWatchCardPB
- 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 MinWatchCardPB
- extends org.sat4j.minisat.constraints.card.MinWatchCard
- implements PBConstr
- See Also:
- Serialized Form
| Fields inherited from class org.sat4j.minisat.constraints.card.MinWatchCard |
ATLEAST, ATMOST, watchCumul |
|
Constructor Summary |
MinWatchCardPB(org.sat4j.minisat.core.ILits voc,
org.sat4j.specs.IVecInt ps,
boolean moreThan,
int degree)
|
MinWatchCardPB(org.sat4j.minisat.core.ILits voc,
org.sat4j.specs.IVecInt ps,
int degree)
|
|
Method Summary |
void |
assertConstraint(org.sat4j.minisat.core.UnitPropagationListener s)
|
org.sat4j.specs.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 MinWatchCardPB |
minWatchCardPBNew(org.sat4j.minisat.core.UnitPropagationListener s,
org.sat4j.minisat.core.ILits voc,
org.sat4j.specs.IVecInt ps,
boolean moreThan,
int degree)
Permet la cr?ation de contrainte de cardinalit? ? observation minimale |
static MinWatchCardPB |
normalizedMinWatchCardPBNew(org.sat4j.minisat.core.UnitPropagationListener s,
org.sat4j.minisat.core.ILits voc,
org.sat4j.specs.IVecInt ps,
int degree)
Permet la cr?ation de contrainte de cardinalit? ? observation minimale |
void |
register()
|
void |
setLearnt()
|
| Methods inherited from class org.sat4j.minisat.constraints.card.MinWatchCard |
calcReason, computePropagation, computeWatches, equals, get, getActivity, getLits, getVocabulary, hashCode, incActivity, linearisation, locked, minWatchCardNew, normalize, propagate, remove, rescaleBy, simplify, size, toString, undo |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.sat4j.minisat.core.Constr |
calcReason, getActivity, incActivity, locked, remove, rescaleBy, simplify |
| Methods inherited from interface org.sat4j.minisat.core.Propagatable |
propagate |
| Methods inherited from interface org.sat4j.specs.IConstr |
get, size |
MinWatchCardPB
public MinWatchCardPB(org.sat4j.minisat.core.ILits voc,
org.sat4j.specs.IVecInt ps,
boolean moreThan,
int degree)
MinWatchCardPB
public MinWatchCardPB(org.sat4j.minisat.core.ILits voc,
org.sat4j.specs.IVecInt ps,
int degree)
getCoef
public java.math.BigInteger getCoef(int literal)
- Specified by:
getCoef in interface PBConstr
getDegree
public java.math.BigInteger getDegree()
- Specified by:
getDegree in interface PBConstr
getCoefs
public java.math.BigInteger[] getCoefs()
- Specified by:
getCoefs in interface PBConstr
normalizedMinWatchCardPBNew
public static MinWatchCardPB normalizedMinWatchCardPBNew(org.sat4j.minisat.core.UnitPropagationListener s,
org.sat4j.minisat.core.ILits voc,
org.sat4j.specs.IVecInt ps,
int degree)
throws org.sat4j.specs.ContradictionException
- Permet la cr?ation de contrainte de cardinalit? ? observation minimale
- Parameters:
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 contrainte
- Returns:
- une nouvelle clause si tout va bien, null sinon
- Throws:
org.sat4j.specs.ContradictionException
minWatchCardPBNew
public static MinWatchCardPB minWatchCardPBNew(org.sat4j.minisat.core.UnitPropagationListener s,
org.sat4j.minisat.core.ILits voc,
org.sat4j.specs.IVecInt ps,
boolean moreThan,
int degree)
throws org.sat4j.specs.ContradictionException
- Permet la cr?ation de contrainte de cardinalit? ? observation minimale
- Parameters:
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 contrainte
- Returns:
- une nouvelle clause si tout va bien, null sinon
- Throws:
org.sat4j.specs.ContradictionException
learnt
public boolean learnt()
- D?termine si la contrainte est apprise
- Specified by:
learnt in interface org.sat4j.specs.IConstr- Overrides:
learnt in class org.sat4j.minisat.constraints.card.MinWatchCard
- Returns:
- true si la contrainte est apprise, false sinon
- See Also:
IConstr.learnt()
setLearnt
public void setLearnt()
- Specified by:
setLearnt in interface org.sat4j.minisat.core.Constr- Overrides:
setLearnt in class org.sat4j.minisat.constraints.card.MinWatchCard
register
public void register()
- Specified by:
register in interface org.sat4j.minisat.core.Constr- Overrides:
register in class org.sat4j.minisat.constraints.card.MinWatchCard
assertConstraint
public void assertConstraint(org.sat4j.minisat.core.UnitPropagationListener s)
- Specified by:
assertConstraint in interface org.sat4j.minisat.core.Constr- Overrides:
assertConstraint in class org.sat4j.minisat.constraints.card.MinWatchCard
computeAnImpliedClause
public org.sat4j.specs.IVecInt computeAnImpliedClause()
- Specified by:
computeAnImpliedClause in interface PBConstr
Copyright © 2008 Centre de Recherche en Informatique de Lens (CRIL). All Rights Reserved.