org.sat4j.pb.constraints.pb
Class HTClausePB
java.lang.Object
org.sat4j.minisat.constraints.cnf.HTClause
org.sat4j.minisat.constraints.cnf.DefaultHTClause
org.sat4j.pb.constraints.pb.HTClausePB
- All Implemented Interfaces:
- java.io.Serializable, org.sat4j.minisat.core.Constr, org.sat4j.minisat.core.Propagatable, PBConstr, org.sat4j.specs.IConstr
public class HTClausePB
- extends org.sat4j.minisat.constraints.cnf.DefaultHTClause
- implements PBConstr
- See Also:
- Serialized Form
| Fields inherited from class org.sat4j.minisat.constraints.cnf.HTClause |
HEAD, lits, tail, voc |
|
Constructor Summary |
HTClausePB(org.sat4j.specs.IVecInt ps,
org.sat4j.minisat.core.ILits voc)
|
|
Method Summary |
void |
assertConstraint(org.sat4j.minisat.core.UnitPropagationListener s)
|
static HTClausePB |
brandNewClause(org.sat4j.minisat.core.UnitPropagationListener s,
org.sat4j.minisat.core.ILits voc,
org.sat4j.specs.IVecInt literals)
Creates a brand new clause, presumably from external data. |
org.sat4j.specs.IVecInt |
computeAnImpliedClause()
|
java.math.BigInteger |
getCoef(int literal)
|
java.math.BigInteger[] |
getCoefs()
|
java.math.BigInteger |
getDegree()
|
| Methods inherited from class org.sat4j.minisat.constraints.cnf.DefaultHTClause |
learnt, register, setLearnt |
| Methods inherited from class org.sat4j.minisat.constraints.cnf.HTClause |
calcReason, equals, get, getActivity, getLits, getVocabulary, hashCode, incActivity, locked, propagate, remove, rescaleBy, simplify, size, toString |
| 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, register, remove, rescaleBy, setLearnt, simplify |
| Methods inherited from interface org.sat4j.minisat.core.Propagatable |
propagate |
| Methods inherited from interface org.sat4j.specs.IConstr |
get, learnt, size |
HTClausePB
public HTClausePB(org.sat4j.specs.IVecInt ps,
org.sat4j.minisat.core.ILits voc)
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
brandNewClause
public static HTClausePB brandNewClause(org.sat4j.minisat.core.UnitPropagationListener s,
org.sat4j.minisat.core.ILits voc,
org.sat4j.specs.IVecInt literals)
- Creates a brand new clause, presumably from external data. Performs all
sanity checks.
- Parameters:
s - the object responsible for unit propagationvoc - the vocabularyliterals - the literals to store in the clause
- Returns:
- the created clause or null if the clause should be ignored
(tautology for example)
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.cnf.HTClause
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.